fullurl=window.location.href;
var baseurl;
if(fullurl.search(/(^http:\/\/[^\/]+)/)>=0){
	baseurl=RegExp.$1;
}
function getURL(where){
	if(where){
		if((where.substr(0,baseurl.length)==baseurl)||(where.search(/^http:/)<0)){
			window.location=where;
		}else{
			window.open(where);
		}
	}
}
function clearText(thefield){
	if (thefield.defaultValue==thefield.value) thefield.value = "";
}
