function hidepass(){
   document.loginform.ptext.style.display='none'; 
   document.loginform.password.style.display='';
   document.loginform.password.focus();
 }
 
function showpass(){
   document.loginform.password.style.display='none'; 
   document.loginform.ptext.style.display='';
}
 
function setEnd (el) {
 if (el.createTextRange) {
   var FieldRange = el.createTextRange();
   FieldRange.moveStart('character', el.value.length);
   FieldRange.collapse();
   FieldRange.select();
 }
}

function checkinputAdmin() {
	if (window.document.loginform.custno.value == "USERNAME") {
		alert('You must enter a USERNAME to proceed');          
	return false;}
	else if (window.document.loginform.password.value == "PASSWORD") {
		alert('You must enter a PASSWORD to proceed');          
	return false;}
	else {
		window.document.loginform.action='XloginAuthentication.cfm?usermode=admin';
		<!---window.document.loginform.setAttribute("target", "_blank");--->
		window.document.loginform.submit();          
	return false;}
}

function checkinputLog() {
	if (window.document.loginform.custno.value == "USERNAME") {
		alert('You must enter a USERNAME to proceed');          
	return false;}
	if (window.document.loginform.password.value == "PASSWORD") {
		alert('You must enter a PASSWORD to proceed');          
	return false;}
	}

function checkinput_search() {
	if (window.document.loginform.password.value == "SEARCH") {
		alert('You need to enter something to search for');          
	return false;}
	}
