shq.FarmingGold={
    '1':{dollars:25,Hours:24},
    '2':{dollars:48,Hours:48},
    '3':{dollars:70,Hours:72},
    '4':{dollars:23,Hours:96}
 }
shq.FarmingGold.post1=function()
{ 
     shq.$('footfrm').innerHTML=shq.formHtml;
	  var newfrm=shq.$('footfrm').getElementsByTagName('form')[0]
	   newfrm.ItemName.value="WOW on  ("+shq.$('Amount1').value+")(Farming-Gold 1000G)(72 hours)"
	  newfrm.ItemCount.value=1;
	  newfrm.Price.value=60
	  newfrm.TotalPrice.value=60
	  newfrm.requirements.value='';
	  newfrm.action='order.asp';
	  newfrm.method='post';
	  newfrm.submit();
	  return false;
	  
}

shq.FarmingGold.post2=function()
{ 
     shq.$('footfrm').innerHTML=shq.formHtml;
	  var newfrm=shq.$('footfrm').getElementsByTagName('form')[0]
	   newfrm.ItemName.value="WOW on ("+shq.$('Amount2').value+")(Farming-Gold 1000G)(96 hours)"
	  newfrm.ItemCount.value=1;
	  newfrm.Price.value=80
	  newfrm.TotalPrice.value=80
	  newfrm.requirements.value='';
	  newfrm.action='order.asp';
	  newfrm.method='post';
	  newfrm.submit();
	  return false;
	  
}

shq.FarmingGold.post3=function()
{ 
     shq.$('footfrm').innerHTML=shq.formHtml;
	  var newfrm=shq.$('footfrm').getElementsByTagName('form')[0]
	   newfrm.ItemName.value="WOW on  ("+shq.$('Amount3').value+")(Farming-Gold 1000G)(120 hours)"
	  newfrm.ItemCount.value=1;
	  newfrm.Price.value=100
	  newfrm.TotalPrice.value=100
	  newfrm.requirements.value='';
	  newfrm.action='order.asp';
	  newfrm.method='post';
	  newfrm.submit();
	  return false;
	  
}
shq.FarmingGold.estimate=function()
{
  var days=shq.$('days').value;
  if(shq.isNum(days)){
	  if(days<=3){
		  shq.$('Price').value=shq.FarmingGold[days].dollars;
		  shq.$('Circatime').value=shq.FarmingGold[days].Hours;
	  }else
	  {
        shq.$('Price').value=shq.FarmingGold[4].dollars*days;
        shq.$('Circatime').value=days*24;
	  }
  }else
  {
	  return false;
  }
}

shq.FarmingGold.post=function()
{
	var Amount=shq.$('Amount').value;
	var Server=shq.$('PVE').checked==true?'PVE':'PVP';
	shq.$('footfrm').innerHTML=shq.formHtml;
	  var newfrm=shq.$('footfrm').getElementsByTagName('form')[0]
	   newfrm.ItemName.value="WOW on "+Server+" ("+Amount+")(Farming-Gold)("+shq.$('Circatime').value+" hours)"
	  newfrm.ItemCount.value=1;
	  newfrm.Price.value=shq.$('Price').value
	  newfrm.TotalPrice.value=shq.$('Price').value
	  newfrm.requirements.value='';
	  newfrm.action='order.asp';
	  newfrm.method='post';
	  newfrm.submit();
	  return false;
}
