function get(self,applicationName) 
{
//if(self==false){
var poststr = "SearchedTxt=" + encodeURI( document.getElementById("textfield").value );
window.location=applicationName+"/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 reqparam( name )
{
  name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
  var regexS = "[\\?&]"+name+"=([^&#]*)";
  var regex = new RegExp( regexS );
  var results = regex.exec( window.location.href );
  if( results == null )
    return "";
  else
    return results[1];
}
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);
}


