
<!--
	function OpenAdv1()
	{
		window.open("BestMarriageProposalWin.asp","WinEmail","height=400,width=450,top=100,left=100,resizable=yes,scrollbars=1");
	}	
			
	function isValidEmail(str,sUndefined) 
	{
	   if (str==sUndefined)
			str="";	
	   return (str.indexOf(".") > 2) && (str.indexOf("@") > 0);
	}
			
	function OpenDivCat()
	{
		if (divCat.style.display=='none')
			divCat.style.display = "inline";
		else
			divCat.style.display = "none";
	}			
		
	function rate(proposalID)
	{
		viewwindow=open('wedding-proposal-rating.asp?proposal='+proposalID,'Mariage_Proposals','resizable=yes,width=450,height=450')
	}	
			
	function EmailAFriend(ProposalID)
	{
		window.open("email-a-proposal.asp?proposal=" + ProposalID,"Email","height=400,width=450,top=100,left=100,resizable=yes,scrollbars=1");
	}	

	function AddToFav(ProposalID)
	{
		
		document.location.href = "MyProposalsAdd.asp?proposal=" + ProposalID ;
	}

	function OpenPic(ProposalID)
	{
		window.open("ProposalPic.asp?proposal=" + ProposalID,"winPic","top=50,left=100,width=550,height=550,scrollbars=yes,resizable=yes");
	}

	function OpenPrint(ProposalID)
	{
		window.open("proposal-story-print.asp?proposal=" + ProposalID,"winPrint","top=30,left=30,height=600,width=535,scrollbars=yes,resizable=yes");
	}	
	
	function SortRes(CatID,sortby)
	{
		if (CatID!="")
			location.href = "Proposal-stories.asp?CatID=" + CatID + "&sortby=" + sortby ;
		else
			location.href = "Proposal-stories.asp?sortby=" + sortby ;
		
	}	
	
	function SortBy(phrase,sortby)
	{
		location.href = "marriage-Proposal-search.asp?phrase=" + phrase + "&sortby=" + sortby ;
	}		
//-->
