function contactUS()
{
	NewPage("contactUS.asp","ContactUS",530,420);
}
function changeTutorStatus(myID,myStatus)
{
	NewPage("changeTutorStatus.asp?id="+myID+"&status="+myStatus,"changeTutorStatus",480,350);
}
function delTutor(myID)
{
	NewPage("delTutor.asp?id="+myID,"delTutor",480,350);
}
function goto(myLocation,sec)
{
	if (sec > 0)
	{
		sec = sec - 1
		gotoSec.innerText = sec
		setTimeout("goto('"+myLocation+"',"+sec+")",1000)
	}
	else 
	{
		window.location = "home.asp?myType="+myLocation
	}
}
function goBack(sec)
{
	if (sec > 0)
	{
		sec = sec - 1
		gotoSec.innerText = sec
		setTimeout("goBack("+sec+")",1000)
	}
	else 
	{
		history.go(-1);
	}
}
function NewPage(url,name,w, h) 
{
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	var windowprops = "location=no,scrollbars=no,menubars=no,toolbars=no,resizable=no" +
",left=" + winl + ",top=" + wint + ",width=" + w + ",height=" + h;
	var popup = window.open(url,name,windowprops);
	if ((document.window != null) && (!popup.opener)) {
		popup.opener = document.window;
	}	
}
function NewPage2(url,name,w, h) 
{

	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	var windowprops = "location=no,scrollbars=yes,menubars=no,toolbars=no,resizable=no,status=no" +
",left=" + winl + ",top=" + wint + ",width=" + w + ",height=" + h;
	var popup = window.open(url,name,windowprops);
	if ((document.window != null) && (!popup.opener)) {
		popup.opener = document.window;
	}	
}
function NewPage3(url,name,w, h) 
{

	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	var windowprops = "location=yes,scrollbars=yes,menubars=yes,toolbars=yes,resizable=yes,status=yes" +
",left=" + winl + ",top=" + wint + ",width=" + w + ",height=" + h;
	var popup = window.open(url,name,windowprops);
	if ((document.window != null) && (!popup.opener)) {
		popup.opener = document.window;
	}	
}

