// JavaScript Document

function get_ajaxObject(){
	//creates a new instance of the XMLHTTP object for the correct browser type
	var xmlHttp=null;
	try{  // Firefox, Opera 8.0+, Safari
  			xmlHttp=new XMLHttpRequest();
  		}
	catch (e){
  // Internet Explorer
  		try{
			xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
		}
  		catch (e){
			xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
		}
  	}
 return xmlHttp;
}

function properCase(obj) {
        val = obj.value;
        newVal = '';
        val = val.split(' ');
        for(var c=0; c < val.length; c++) {
                newVal += val[c].substring(0,1).toUpperCase() +
val[c].substring(1,val[c].length) + ' ';
        }
        obj.value = newVal;
}

function logout(){
	document.getElementById("logout_iframe").src = "logout_main.php";
}
