
function runSlideShow(){

}

// Call Window in Home Page


function loadcallwind()
{
	document.getElementById("call_chatid").innerHTML='<img align="center" src="/us/images/ajax-loader.gif" style="padding:55px;">';
	var strURL="/us/callwind.php";
		//alert(strURL);
	var req = GetXmlHttpObject();
	if (req) {

		req.onreadystatechange = function() {
			if (req.readyState == 4) {
				// only if "OK"
				if (req.status == 200) {
					//alert(req.responseText);
					document.getElementById("live_chat_div").style.display = "block";
					document.getElementById("call_chatid").innerHTML=req.responseText;
				}
			}
		} 
	}
	req.open("GET", strURL, true);
	req.send(null);
}

function call_addition_fields()
{
	var cn = document.chatform.call_name.value;
	var cpc = document.chatform.call_phone_code.value;
	var cph = document.chatform.call_phone_number.value;
	var cm = document.chatform.c_mon.value;
	var cd = document.chatform.call_date.value;
	var cy = document.chatform.call_year.value;
	var ct = document.chatform.call_timzon.value;
	
	var strURL="/us/booking_call.php?&cn="+cn+"&cpc="+cpc+"&cph="+cph+"&cm="+cm+"&cd="+cd+"&cy="+cy+"&ct="+ct;
	//alert(strURL);
	var req = GetXmlHttpObject();
	if (req) {

		req.onreadystatechange = function() {
			if (req.readyState == 4) {
				// only if "OK"
				if (req.status == 200) {
					//alert(req.responseText);
					document.getElementById("live_chat_div").style.display = "block";
					document.getElementById("call_chatid").innerHTML=req.responseText;
				}
			}
		} 
	}
	req.open("GET", strURL, true);
	req.send(null);
}

function chatvalidate1()
{
	//alert("jagdsj");
	if(document.chatform.call_name.value=='') {
		alert('Please enter your Name');
		document.chatform.call_name.focus();
		return false; 
	}
	
	if(!isNaN(document.chatform.call_name.value)) {
		alert('Please enter characters only.');
		document.chatform.call_name.focus();
		return false; 
	}

	if(document.chatform.call_phone_code.value=='') {
		alert('Please enter Country Code');
		document.chatform.call_phone_code.focus();
		return false; 
	}
	
	
	if(document.chatform.call_phone_number.value=='') {
		alert('Please enter Phone Number');
		document.chatform.call_phone_number.focus();
		return false; 
	}
	
	call_addition_fields();
	return true;
}


