function music()
{
	window.open ("music.htm","mywindow","menubar=1,resizable=1,width=350,height=250");
}

function print_page()
{
	window.print()
	return true
}
function helpwindow()
{
	window.open("helpsub.asp","xyz","menubar=0,toolbar=0,statusbar=0,scrollbars=0,location=0,resizable=0,directories=0,fullscreen=0,height=350,left=510,top=0,width=280")
}
function time()
{
	window.location.href("default.asp?regconfirm=0");
}
function opt_change()
{
	alert(document.frmsearch.opttype[0].checked);
}
function Check_Null()
 {
	 if (document.frmsearch.Cmbcounty.value == "selectcounty")  	
	   {
	     alert("Select county")
	     document.frmsearch.Cmbcounty.focus()
	     return false
	      document.location.href="default_copy(1).asp"
	    }
	   /*if (document.frmsearch.CmbCity.value == "selectcity")  	
	   {
	     alert("Select City")
	     document.frmsearch.CmbCity.focus()
	     return false
	   }
	   if (document.frmsearch.CmbTown.value == "selecttown")  	
	   {
	     alert("Select Town")
	     document.frmsearch.CmbTown.focus()
	     return false
	  }
	  if (document.frmsearch.CmbPrice.value == "selectprice")  	
	   {
	     alert("Select Price")
	     document.frmsearch.CmbPrice.focus()
	     return false
	   }*/
 }
function goto_login()
{
	if (document.frmlogin.txtusername.value=="")
	{
		alert("User Name Can Not be Blank")
		document.frmlogin.txtusername.focus()
		return false
	}
	else if (document.frmlogin.txtpassword.value=="")
	{
		alert("Password Can Not be Blank")
		document.frmlogin.txtpassword.focus()
		return false
	}
}
function all_clear()
{
	/*if(document.frmsearch.Cmbcounty[0].value=="selectcounty")
	{
		document.frmsearch.Cmbcounty.value="selectcounty"
	}
	else
	{
		document.frmsearch.Cmbcounty.value="nocounty"
	}
	if (document.frmsearch.CmbCity[0].value=="notown")
	{
		document.frmsearch.CmbCity.value="nocity"
	}
	else
	{
		document.frmsearch.CmbCity.value="selectcity"
	}
	document.frmsearch.CmbCity.value="nocity"
	document.frmsearch.CmbPrice.value="noprice"
	document.frmsearch.CmbProperty.value="Any"
	document.frmsearch.CmbBedRooms.value="Any"
	document.frmsearch.CmbBathRooms.value="Any"
	document.frmsearch.CmbSize.value="Any"*/
	//var posturl
	//posturl=document.frmsearch.posturl.value
	//document.location.href=posturl
	//window.location.href="default_copy(1).asp"
	window.location.href="default_copy(1).asp"
}
