
 
 function Islocal(){
	var domain = document.domain.toLowerCase();
	
	if(domain =='localhost'){
		return true;
		
		}else{
		 return false;
		}
	}
 

if(Islocal()){
	// import config
	PPWAppbasePath = 'http://localhost/sites/premiumportcom/html/' ;
	//premiumportcom\html
}else{
	// import config
	//STAGINGSERVER
	//PPWAppbasePath = 'http://www.flashmxwebbuilder.com/sites/ppwdemo/demo005/'
	//production server
//	PPWAppbasePath = 'http://76.12.121.232/';
PPWAppbasePath = 'http://www.premiumport.com/';
	}

	// PPWAppbasePath = 'http://65.182.212.157/';



//_cfscriptLocation = "http://localhost/sites/cfajax/examples/functions.cfm";
//_cfajaxscriptLocation = "http://localhost/sites/ppwwebdemo/cfajax/functions.cfm";
//_cfscriptLocation = "http://localhost/sites/ppwwebdemo/cfajax/functions.cfm";
// PPWAppbasePath
_cfajaxscriptLocation = PPWAppbasePath + "cfajax/functions.cfm";
_cfscriptLocation = PPWAppbasePath + "cfajax/functions.cfm";


//_cfscriptLocation2 = "http://localhost/sites/cfajax/examples/menufunctions.cfm";

//_cfscriptAmazonLocation = "http://localhost/sites/cfajax/app/amazon/functions.cfm";
//_cfscriptVotingLocation = "http://localhost/ajax/sites/cfapp/voting/functions.cfm";
//_cfscriptYahooLocation = "http://localhost/ajax/sites/cfapp/yahoo/functions.cfm";

function errorHandler(message)
{
	$('disabledZone').style.visibility = 'hidden';
    if (typeof message == "object" && message.name == "Error" && message.description)
    {
        alert("Error: " + message.description);
    }
    else
    {
        alert(message);
    }
};
