   var http_request = false;
   function makePOSTRequest(url, parameters) 
   {
      http_request = false;
      if (window.XMLHttpRequest) 
	  { // Mozilla, Safari,...
         http_request = new XMLHttpRequest();
         if (http_request.overrideMimeType) 
		 {
             // set type accordingly to anticipated content type
            //http_request.overrideMimeType('text/xml');
            http_request.overrideMimeType('text/html');
         }
      } 
	  else if (window.ActiveXObject) 
	  { // IE
         try 
		 {
            http_request = new ActiveXObject("Msxml2.XMLHTTP");
         } catch (e) 
		 {
            try 
			{
               http_request = new ActiveXObject("Microsoft.XMLHTTP");
            } catch (e) {}
         }
      }
      if (!http_request) 
	  {
         alert('Cannot create XMLHTTP instance');
         return false;
      }
     
      http_request.onreadystatechange = alertContents;
      http_request.open('POST', url, true);
      http_request.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
      http_request.setRequestHeader("Content-length", parameters.length);
      http_request.setRequestHeader("Connection", "close");
      http_request.send(parameters);
   }

   function alertContents()
   {
      if (http_request.readyState == 4)
      {
         document.getElementById('box_quiry1_center').innerHTML = "<br><br><br><br><br>Thankyou for your query. We will get back to you soon!<br><br><br><br><br>";
      }
   }
  
   function get(obj) 
   {
      var poststr = "uname=" + encodeURI( document.getElementById("uname").value ) +
                    "&email=" + encodeURI( document.getElementById("email").value ) +
					"&question=" + encodeURI( document.getElementById("question").value );
      makePOSTRequest('http://www.itgodz.com/thankyou.php', poststr);
   }

	function make_blank(val,str)
	{
		if(str==1 && val.value=="Your Name") 
			val.value="";
			
		if(str==2 && val.value=="Your E-mail") 
			val.value="";
				
		if(str==3 && val.value=="Your Question...?") 
			val.value="";
	}

	function put_again(val,str)
	{
		if(str==3 && val.value=="") 
			val.value="Your Question...?";
			
		if(str==2 && val.value=="") 
			val.value="Your E-mail";
				
		if(str==1 && val.value=="") 
			val.value="Your Name";		
		
	}

	function sendRequest() 
    {
        new Ajax.Request("http://www.itgodz.com/email_form_process.php", {
               method: 'post',
               postBody: "uname="+$F("uname")+"&email="+$F("email")+"&question="+$F("question"),
               onComplete: showResponse
        });
    }
    
    function showResponse(req)
    {
       $('errors').style.borderStyle= "solid";
       var res=/message was received/;
       if(req.responseText.match(res))
       {
			$('errors').style.borderColor= "green";
			$('errors').style.color="green";
       }
       else
       {
			$('errors').style.borderColor= "#aaa9a9";
			$('errors').style.color="red";
       }
      
		$('errors').style.borderSize= "1px";
		if(req.responseText=="Thank you for your inquiry, Your message has been received. <br>We will get back to you as soon as we can.<br>")
		$('box_yellow1_center_quick_q').innerHTML=  "<br><br><br>"+req.responseText+"<br><br><br>";//box_quiry1_center
		else
		$('errors').innerHTML=  req.responseText;
    }
    
function MM_findObjneww(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObjneww(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_validateFormneww() 
{ //v4.0
  var val,i,p,q,nm,test,num,min,max,errors='',args=MM_validateFormneww.arguments;
  for (i=0; i<(args.length-2); i+=3) 
  { 
  	test=args[i+2]; 
  	val=MM_findObjneww(args[i]);
    
		if (val) 
		{ 
			nm=val.name; 
			if ((val=val.value)!="") 
			{
				if (test.indexOf('isEmail')!=-1) 
				{ 
					p=val.indexOf('@');
					
					if (p<1 || p==(val.length-1)) 
					errors+='- Email must contain an e-mail address.\n';
						//errors+='- '+nm+' must contain an e-mail address.\n';
				} 
				else if (test!='R') 
				{ 
					num = parseFloat(val);
					if (isNaN(val)) 
						errors+='- '+nm+' must contain a number.\n';
					if (test.indexOf('inRange') != -1) 
					{ 
						p=test.indexOf(':');
						min=test.substring(8,p); max=test.substring(p+1);
						if (num<min || max<num) 
							errors+='- '+nm+' must contain a number between '+min+' and '+max+'.\n';
					} 
				} 
			} 
			else if (test.charAt(0) == 'R') 
			{
				if(nm=='email_new')
					nm = 'Email';
				else if(nm=='comments')
					nm = 'Requirement';		
				else if(nm=='desc')
					nm = 'Description';				
				errors += '- '+nm+' is required.\n'; 
			}	
		}
	} 
	
	if (errors) 
		alert('The following error(s) occurred:\n'+errors);
  
  	document.MM_returnValue = (errors == '');
}

function livehelp()
{
	window.open("http://tipstuts.com/livehelp/livehelp.php?department=1","mywindow","menubar=0,resizable=0,width=500,height=400")
}