function call_login_submit(){
	document.forms["login_form"].submit()
}

function change_user(){
	loc=document.location.toString()
	if(loc.indexOf("?")!=-1){
		pos1=loc.indexOf("?")
		loc=loc.substr(0,pos1)
	}
	if(qstr==""){
		qstr="?change_user=1"
	}else{
		qstr+="&change_user=1"
	}
	document.location=loc+qstr
}
function logout_submit(){
	
	
		
		
	thispath=(pthstr+"content/generic_floats/user_login.asp?nosubmit=1")
	
		//SET WINDOW POSITION
		if(typeof window.screenX =="undefined"){
			if(typeof window.screenTop !="undefined"){
			
				tp=window.screenTop
				lf=window.screenLeft
				pos=1
			}
		}else{
			tp=window.screenY
			lf=window.screenX
			pos=1
		}
	
		features=",top="+tp+",left="+lf
	
		//END  OF SET WINDOW POSITION
	
		 popwin=window.open(thispath,"loginwindow","status=yes,scrollbars=yes,resizable=yes,width=300,height=200"+features)
		 popwin.focus()
		loginwindow=popwin
		loginwindow.myopener=window
		
		//document.forms["login_form"].submit()
	
}

function login_submit(){
	
	sub_root=""
	
	username=document.forms["login_form"].elements["username"].value
	password=document.forms["login_form"].elements["password"].value
	
	
	if(username=="" || password==""){
		alert("You must enter a username and password")
		return false
	}else{
		thispath=(pthstr+"content/generic_floats/user_login.asp?nosubmit=1")
	
		//SET WINDOW POSITION
		if(typeof window.screenX =="undefined"){
			if(typeof window.screenTop !="undefined"){
			
				tp=window.screenTop
				lf=window.screenLeft
				pos=1
			}
		}else{
			tp=window.screenY
			lf=window.screenX
			pos=1
		}
	
		features=",top="+tp+",left="+lf
	
		//END  OF SET WINDOW POSITION
	
		 popwin=window.open(thispath,"loginwindow","status=yes,scrollbars=yes,resizable=yes,width=300,height=200"+features)
		 popwin.focus()
		loginwindow=popwin
		loginwindow.myopener=window
		
		//document.forms["login_form"].submit()
	}

}
