function OnChangePic(type,id)
{
	window.open("ChangePic.aspx?" + type + "=" + id,'','status=no, height=110, width=400')
}

function ResetFields()
{
	document.forms[0].reset();
}

function OnSendMail(receiverId)
{
	var wnd = window.open("Secure/SendMail.aspx?to=" + receiverId,'','status=no, scrollbars=yes, height=580, width=510');
	wnd.opener = this;
}

function OnAccount()
{
	window.parent.DataFrame.location.replace("Account.aspx");
}

function OnEnlarge(id,width,height)
{
	window.open("EnlargePicture.aspx?id=" + id,'','status=no, scrollbars=no, height='+height.toString()+', width='+width.toString());
}

function OnCompEnlarge(id,width,height)
{
	window.open("EnlargePicture.aspx?compid=" + id,'','status=no, scrollbars=no, height='+height.toString()+', width='+width.toString());
}

function OnFranchiseEnlarge(id,width,height)
{
	window.open("../EnlargePicture.aspx?franchiseid=" + id,'','status=no, scrollbars=no, height='+height.toString()+', width='+width.toString());
}
