/*
	byO.es // 2006-10
	ajax v0.1
*/
var ajax = new GLM.AJAX();
var container;

function ajaxCallback(content) {

//	alert(content);
	document.getElementById(container).innerHTML= content;

}

function getCity(province, active) {

	container= 'contCity';

	tmp= '';
	if (active==true) tmp= 'Active';

	ajax.callPage("ajax.php?function=get"+tmp+"City&province="+province, ajaxCallback);

}

function getOption(type) {
	
	container= 'contOption';
	
	ajax.callPage("ajax.php?function=getOption&type="+type, ajaxCallback);
		
}

function getPaymentTime(type) {
	
	container= 'payments';
	
	ajax.callPage("ajax.php?function=getPaymentTime&type="+type, ajaxCallback);
		
}

function getformservice(service){
	
	container= 'form';
	
	ajax.callPage("ajax.php?function=getformservice&service="+service, ajaxCallback);
}


function getTypePet(type){
	
	container= 'coverhorse';
	
	ajax.callPage("ajax.php?function=getTypePet&type="+type, ajaxCallback);
}

function acceptterms(term){
	
	container= 'paypal';
	
	ajax.callPage("ajax.php?function=acceptterms&term="+term, ajaxCallback);
	
   
   
}

