var live="https://www.paypal.com/cgi-bin/webscr";
var test="https://www.sandbox.paypal.com/cgi-bin/webscr";
function show(){
/*	var method=document.getElementById("payment_method").value;
	if(method=="PaypalStandard")
	{
		showHide("showPr","hide");
		showHide("buyButton","show");
		
	}
		
	else if(method=="PaypalPro"){
		showHide("showPr","show");
		showHide("buyButton","hide");
		
	}
		
	else{
		showHide("showPr","hide");
		showHide("buyButton","hide");
	}
		
*/	
}
function showHide(divi,arg){
	obj = document.getElementById(divi);
	if (arg == "show") 
		obj.style.display = "block";
	 else if(arg=="hide")
		obj.style.display = "none";
}

function sub(){
/*
var method=document.getElementById("payment_method").value;
if(document.getElementById("mode").value=="Test")
document.serviceForm.action=test;
else
document.serviceForm.action=live;
if(method=="PaypalStandard")
	document.serviceForm.submit();
else if(method=="PaypalPro"){
	alert("Not Sufficent Informations");
	getElementById("payment_method").focus();
}
	
else
	alert("Select a Payment Method");
*/
	}

function checkoutPRO(){		
var URL = "http://quantumseolabs.com/services/checkoutPro?ajaxcall=true";		
var formObject=getElementById("serviceForm");

formObject.action = URL;
handleSuccess=function(o){
if(o.responseText){
	if(parseInt(o.responseText))
	window.location=APPLICATION_URL+"services/success";

getElementById("showmessage").innerHTML=o.responseText;



} else {
alert('Sorry! your request cannot be send at this time\nPlease Fill valid values in all the fields marked with *');
}
			
}
callback={success:handleSuccess,failure:this.handleFailure}
YAHOO.util.Connect.setForm(formObject);		
YAHOO.util.Connect.asyncRequest("POST",URL,callback);
}

function submitCrit(){		
var formObject=document.getElementById("form1");
var URL=formObject.action+"?ajaxcall=true";

handleSuccess=function(o){
if(o.responseText)
{
getElementById("webcrit_div").innerHTML=o.responseText;
} 
else 
alert('Sorry! Ajax not Enabled');
}
callback={success:handleSuccess,failure:this.handleFailure}
YAHOO.util.Connect.setForm(formObject);		
YAHOO.util.Connect.asyncRequest("POST",URL,callback);
}
