function openPopup(str1)
	{
	if(str1=="renter_popup.php")
		window.open(str1,"mypopup","status=no,width=800,height=600,left=0,top=0,scrollbars=yes")
	else
		window.open(str1,"mypopup","status=no,width=650,height=600,left=0,top=0,scrollbars=yes")
	showit()
	}

function submitRenter()
	{
	if(!checkBlank(document.myform.txt_login1,"Login"))
		return
	if(!checkBlank(document.myform.txt_password1,"Password"))
		return

	document.myform.action="http://www.nyrentclub.com/renter_login.php"
	document.myform.submit()
	}

function submitBroker()
	{
	if(!checkBlank(document.frmbroker.txt_login,"Login"))
		return
	if(!checkBlank(document.frmbroker.txt_password,"Password"))
		return

	document.frmbroker.action="http://www.nyrentclub.com/login.php"
	document.frmbroker.submit()
	}
function submitBrokerModule()
	{
	if(!checkBlank(document.frmbrokerModule.txt_login,"Login"))
		return
	if(!checkBlank(document.frmbrokerModule.txt_password,"Password"))
		return

	document.frmbrokerModule.action="http://www.nyrentclub.com/login.php"
	document.frmbrokerModule.submit();
	}
function checkKey(e,str1)
	{
	var key=e.keyCode
	if(key==13)
		{
		if(str1=="renter")
			submitRenter()
		else
			submitBroker()
		}
	}
function checkKeyModule(e,str1)
	{
	var key=e.keyCode
	if(key==13)
		{
		if(str1=="renter")
			submitRenter()
		else
			submitBrokerModule()
		}
	}
