
function checkpage(page){		
	document.frmSearch.page.value = page;
	document.frmSearch.hidden_id.value = document.frmSearch.hidden_id.value;
	document.frmSearch.hiddenaction.value = document.frmSearch.hiddenaction.value;
	document.frmSearch.action = "adv_search.php";
	document.frmSearch.submit();
}
function Page_call(pageno){	
	document.frmSearch.noofpage.value = pageno;
	document.frmSearch.submit();
}
function validation(){	
	if(checkBlank(document.frmheader.txt_search,"Search")==false)
	return false;	
	document.frmheader.submit();
}


/*##  For Save a Search in Myaccount Start ##*/
function callActionPage(member_id)
{
	//alert("hiiiii");
	if(member_id=="0")
	{
		alert("Please Login First.");
		return false;
	}    
	chk_checked = "false";		
	if(document.frmSearch.chk_all.length)
	{
		total = document.frmSearch.chk_all.length;
		for (i=0;i<total;i++)
		{
			if (document.frmSearch.chk_all[i].checked)
			{
				chk_checked = "true";
				break;
			}
		}
	}
	if(document.frmSearch.chk_all.checked==true)
	{	
		chk_checked = "true";
	}
	if(chk_checked == "true")
	{
			document.frmSearch.save.value = "save";
			document.frmSearch.action = "adv_search.php";
			document.frmSearch.submit();
	}
	else if (chk_checked == "false")
	{
		alert("Please select the Property(s) for Save.");
		return false;
	}
}
/*##  For Save a Search in Myaccount End ##*/


/*##  For Send To Friend  Start ##*/
function SendTofriend(){
	//alert("hello");
	chk_checked = "false";		
	if(document.frmSearch.chk_all.length){
		total = document.frmSearch.chk_all.length;
		for (i=0;i<total;i++){
			if (document.frmSearch.chk_all[i].checked){
				chk_checked = "true";
				break;
			}
		}
	}		
	if(chk_checked == "true"){
		document.frmSearch.act.value = "TellaFriend";
		document.frmSearch.action = "send_to_frnd.php";
		document.frmSearch.submit();
	}else if (chk_checked == "false"){
		alert("Please select the Property(s) for Send To Friend.");
		return false;
	}
}
/*##  For Send To Friend End ##*/

/*##  For Send To Friend  Start ##*/
function EmailUs(){
	//alert("hello");
	chk_checked = "false";		
	if(document.frmSearch.chk_all.length){
		total = document.frmSearch.chk_all.length;
		for (i=0;i<total;i++){
			if (document.frmSearch.chk_all[i].checked){
				chk_checked = "true";
				break;
			}
		}
	}		
	if(chk_checked == "true"){
		document.frmSearch.act.value = "EmailUs";
		document.frmSearch.action = "email_us.php";
		document.frmSearch.submit();
	}else if (chk_checked == "false"){
		alert("Please select the Property(s) for Email Us.");
		return false;
	}
}
/*##  For Send To Friend End ##*/