﻿function Mail_Compose(refprofileid,threadid) {
	window.location.href = "mail_compose.aspx?profileid="+refprofileid+"&thread="+threadid;
}
function Mail_Send() {
    document.getElementById("mailform").submit();
}

function Mail_Reply(messageid) {
	window.location.href = "mail_compose.aspx?do=reply&messageid="+messageid;
}
function Mail_Delete(messageid,mtype) {
	window.location.href = "mail_delete.aspx?messageid="+messageid+"&mtype="+mtype;
}
function Mail_Block(messageid) {
	window.location.href = "mail_block.aspx?messageid="+messageid;
}
function Mail_Spam(messageid) {
	document.location.href = "mail.aspx?do=spam&messageid="+messageid;
}
function doCancel(profileid) {
    document.location.href = "profile_"+profileid+".aspx";
}
function Fav_Add(fpid,el) {	
	frames['ffn'].location.href = "list_favorites_add.aspx?profileid="+fpid;	
	document.getElementById("atf"+el).innerHTML = '<a href="Javascript:Fav_Del('+fpid+','+el+');">Remove from Favorites</a>';
}
function Wink_Send(wpid,el) {	
	frames['ffn'].location.href = "list_winks_add.aspx?profileid="+wpid;	
	document.getElementById("atw"+el).innerHTML = 'Wink Sent';
}
function Fav_Del(fpid,el) {
	frames['ffn'].location.href = "favorites_del.aspx?profileid="+fpid;
	document.getElementById("atf"+el).innerHTML = '<a href="Javascript:Fav_Add('+fpid+','+el+');">Add to Favorites</a>';
}
function Block_Add(fpid,el) {	
	frames['ffn'].location.href = "list_blocks_add.aspx?profileid="+fpid;	
	document.getElementById("atb"+el).innerHTML = '<a href="Javascript:Block_Del('+fpid+','+el+');">Unblock Member</a>';
}
function Block_Del(fpid,el) {
	frames['ffn'].location.href = "list_blocks_del.aspx?profileid="+fpid;
	document.getElementById("atb"+el).innerHTML = '<a href="Javascript:Block_Add('+fpid+','+el+');">Block Member</a>';
}
function showPhoto(img,profileid) {
    document.getElementById("userphoto").src = "profiles/150/"+profileid+"_"+img+".jpg";
}
function skipStep() {    
    document.location.href = "signup3.aspx?do=skip";
}