function get(self) 
{
if(self==false){
var poststr = "SearchedTxt=" + encodeURI( document.getElementById("textfield").value );
window.location="Course-Results.aspx?"+poststr;
}
else
{
var poststr = "SearchedTxt=" + encodeURI( document.getElementById("textfield2").value );
window.location="search.aspx?"+poststr;
}
}

function gotoPage(page) {
	window.location= page;
	//location.reload(true);
}
function ipaddress(){
	window.onerror=null;
	var ip = new java.net.InetAddress.getLocalHost();
	var ipStr = new java.lang.String(ip);
	return ipStr.substring(ipStr.indexOf("/")+1);
}

