function usernameemptyfield(formfield){
	//if(formfield.value == ""){ formfield.value = value;	}else{ formfield.value = ""; }
	formfield.value = "";
}
function change_submit(str){
	if (str=="agents"){
	document.getElementById("login_box").action="/index.php";
	}else{
	document.getElementById("login_box").action="/Affiliate/index.php";
	}
}
function submit_header(){
document.login_box.submit();
}
function submit_search(){
document.f1_header.submit();
}

function get_phone(){
	
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null){
		alert ("Browser does not support HTTP Request")
		return
	} 

		var url=location.protocol + "//" + location.hostname +"/xjax/phone.php";
		url=url+"?xid="+Math.random()
		//alert(url);
		xmlHttp.onreadystatechange=phoneChanged;
		xmlHttp.open("GET",url,true)
		xmlHttp.send(null)
		
} 

function phoneChanged(){ 
		//alert(xmlHttp.responseText);
		document.getElementById('phone_div').innerHTML =xmlHttp.responseText;
} 
