 function prImg(){
	 if (document.images)
    {
      preload_image = new Image(35,35); 
      preload_image.src="http://schoolclient.com/job/rsos/bsyrnd.gif"; 
    }
 }
	
function getXMLHTTPRequest(){
	
	try{
		req = new XMLHttpRequest();
	} catch(err1){
		
		try{
			req = new ActiveXObject("Msxml2.XMLHTTP");
		} catch(err2) {
			
			try {
				req = new ActiveXObject("Microsoft.XMLHTTP");
			} catch(err3) {
				reg = false;
			}
		}
	}
	return req;
	
}

httpstprofiletoggle=getXMLHTTPRequest();

function togglenw(lid,myurl){
	var myurl = myurl;
	httpstprofiletoggle.open("GET", myurl, true);
	getId(lid);
	
	httpstprofiletoggle.send(null);
	if(lid == 'ctype'){
		slideitb();
	}
}
function getId(lid){
	id = lid;
	httpstprofiletoggle.onreadystatechange = useHttpResponsestprofiletoggle;
	function useHttpResponsestprofiletoggle(){
		if(httpstprofiletoggle.readyState == 4){
			if(httpstprofiletoggle.status==200){
				try{
				mytext=httpstprofiletoggle.responseText;
					if(id.indexOf('~') > -1){
						num = id.length;
						rid = id.substring(1,num);
						document.getElementById(rid).value = mytext;
					}
					else{
						document.getElementById(id).innerHTML=mytext;
					}
				}
		catch(err4){alert(err4.description);}
			}
		}
		
		else{
			document.getElementById(id).innerHTML='<font color="red"><img src="http://schoolclient.com/job/rsos/bsyrnd.gif" alt="Please wait..." titl="Please wait..."><br></font>';
			
		}
	}
}
