/*
* Clears the text from the given login form input field.
*/
function ClearLoginField(strField) {
	if (strField == "password") {
		document.formLogin.LoginPassword.value = "";
	} else if (strField == "username") {
		document.formLogin.LoginUsername.value = "";
	} else if (strField == "search") {
		document.siteSearchForm.SiteSearch.value = "";
	}
}

/*
* Submits the login form.
*/
function SubmitLoginForm() {
	document.formLogin.submit();
}

/*
* Global Popup Support window
*/
function popup(url, windowname) 
{
 var width  = 800;
 var height = 600;
 var left   = (screen.width  - width)/2;
 var top    = (screen.height - height)/2;
 var params = 'width='+width+', height='+height;
 /*
 params  = 'width='+screen.width;
 params += ', height='+screen.height;
 params += ', top=0, left=0'
 params += ', fullscreen=yes';
*/
 params += ', top='+top+', left='+left;
 params += ', directories=no';
 params += ', location=no';
 params += ', menubar=no';
 params += ', resizable=yes';
 params += ', scrollbars=no';
 params += ', status=no';
 params += ', toolbar=no';
 newwin=window.open(url,windowname, params);
 if (window.focus) {newwin.focus()}
 return false;
}