
function ShowProfile(strUserID)
{
 location.href = "ShowProfile.asp?ViewMode=Full&PID=" + strUserID
}

function ShowPhotograph(url)
{
 oConfigWin("ShowPhotograph.asp?View=Photo&PID=" + url);
}

function ShowAllGrooms()
{
 location.href ="ProfileListing.asp?page=1&ageFrom=20&ageTo=30&heightfrom=Any&heightto=Any&sex=Male&city=Any&country=Any&religion=&MotherTongue=&photo=&BodyType=&caste=&complexion=&MaritalStatus=&pageSize=10"
 }
 
 function ShowAllBrides()
{
 location.href ="ProfileListing.asp?page=1&ageFrom=20&ageTo=30&heightfrom=Any&heightto=Any&sex=Female&city=Any&country=Any&religion=&MotherTongue=&photo=&BodyType=&caste=&complexion=&MaritalStatus=&pageSize=10"
}


function ShowMatrimonials(strSearchType, strSearchBy)
{
	
 strURL ="Matrimonials.asp?Matrimonial=" + strSearchType + "&Type=" + strSearchBy + ""; 
 
 location.href =strURL;
 }



function UpdateAccount(){ 
	document.frmTemp.action="Register_1.asp"
	document.frmTemp.hidAction.value="Edit"		
	document.frmTemp.submit();
}
function UpdateProfile(){ 
	document.frmTemp.action="Register_2.asp"
	document.frmTemp.hidAction.value="Edit"		
	document.frmTemp.submit();
}
function UpdatePartnerProfile(){ 
	document.frmTemp.action="Register_3.asp"
	document.frmTemp.hidAction.value="Edit"		
	document.frmTemp.submit();
}
function UploadPhotograph(){ 
	document.frmTemp.action="UploadPhotograph.asp"
	document.frmTemp.hidAction.value="Edit"		
	document.frmTemp.submit();
}
function Logout(){ 
	 location.href = "Logout.asp"
}
function OpenInbox(){ 
	document.frmTemp.action="MessageListing.asp"
	document.frmTemp.hidAction.value="0"		
	document.frmTemp.submit();
}
function OpenOutbox(){ 
	document.frmTemp.action="MessageListing.asp"
	document.frmTemp.hidAction.value="1"		
	document.frmTemp.submit();
}

function ContactMe(){ 
	document.frmCompose.submit();
}

// #### clear form ### 
function cls(str){
	str.value = "";
	return;
}

//function to display the modal dialog window in center

function oConfigDialog(url,w,h)
{
var sURL = url;
var iHeight = h;
var iWidth = w;
var sFeatures="dialogHeight: " + iHeight + "px; dialogWidth: " + iWidth + "px;  edge: raised; center: yes; help:no; resizable: no; status: no;";
window.showModalDialog(sURL, "", sFeatures);
}

//function to display the pop up window in center
function oConfigWin(url,w,h) {

    if (!w) w = 400;
    if (!h) h = 500;

    if (document.all)
        var xMax = screen.width, yMax = screen.height;
    else
        if (document.layers)
            var xMax = window.outerWidth, yMax = window.outerHeight;
        else
            var xMax = w, yMax=h;
 
    var xOffset = (xMax - w)/2, yOffset = (yMax - h)/2;
 
    config =  window.open(url,'','width='+w+',height='+h+',screenX='+xOffset+',screenY='+yOffset+',top='+yOffset+',left='+xOffset+',directories=no,location=no,menubar=no,scrollbars=no,status=no,toolbar=no,resizable=no');
}

// #### right click of mouse disabled ### 
function click(e) {
	if (document.all) {
		if (event.button==2||event.button==3) {
			oncontextmenu='return false';
		}
	}
	if (document.layers) {
		if (e.which == 3) {
			oncontextmenu='return false';
		}
	}
}
if (document.layers) {
	document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown=click;
document.oncontextmenu = new Function("return false;")