<!--

/* Open print-friendly profile window */
function print(profileid){
	sUrl = "/dating/action/profile_print.jsp?id=" + profileid;
	popUp(sUrl,450,650,true);
}

/* Open save profile page, which will save the profile */
function save(profileid){
	sUrl = "/private/bookmarkPerson.do?id=" + profileid;
	popUp(sUrl,230,520);
}

/* Open window to send email to member */
function email(profileid, username){
	sUrl = "/private/editNewMessage.do?id=" + profileid + "&name=" + username;
	popUp(sUrl,320,620,false);
}

/* Open window to chat with member */
function chat(profileid){
	sUrl = "/dating/action/chat.jsp?id=" + profileid;
	popUp(sUrl,475,620);
}

/* Open window to see the zipcode  */
function zipcode(){
	sUrl = "/dating/viewZipCode.jsp";
	popUp(sUrl,400,530,true);
}

function setZipOfListener(myZip){
	form = document.forms[0];
	form.location.value = myZip;
}

/* Open window to chat with member */
function compatible(profileid,premiumStatus){
	if(!premiumStatus){
		//window.location.href="/signup/premium/premiumRedirect.do";
		//return;
		sUrl = "/checkCompatible.do?id="+ profileid;
		popUp(sUrl,775,490,true);
	}else{
		sUrl = "/checkCompatible.do?id="+ profileid;
		popUp(sUrl,775,490,true);
	}
}

/* method override for compatible() to account for status */
function compatible1(profileid,status,premiumStatus){
	if(!premiumStatus){
		sUrl = "/checkCompatible.do?id="+ profileid;
		popUp(sUrl,775,490,true);
		//window.location.href="/signup/premium/premiumRedirect.do";
		//return;
	}if(status!=true){
		var input_box=confirm("Sorry but this feature will only work if you have completed your own personality questionnaire. Would you like to do this now ?");
		if (input_box==true){ 
			window.location.href="/editPersonalityProfile.do";
        }
	}else{
		sUrl = "/checkCompatible.do?id="+ profileid;
		popUp(sUrl,775,490,true);
	}
}

/* Open window to block member from contacted me */
function block(profileid, username){
	sUrl = "/private/editBlock.do?id=" + profileid + "&name=" + username;
	popUp(sUrl,250,530);
}

/* Open popup window and load flirt page.  */
function flirt(profileid, username){
	sUrl = "/private/editFlirt.do?id=" + profileid + "&name=" + username;
	popUp(sUrl,250,530);
}

//-->
