﻿function doConfirm_pwd(id)
{ var strQueryVars = new String(""); strQueryVars = "id=" + id; var strPath
strPath = "../../vivah_matrimonials/introContact/confirmpassword.aspx?" + strQueryVars; var mybars = 'directories=no,location=no,menubar=no,status=no,titlebar=no,srollbars=no,toolbar=no,height=225,width=300,resizable=no'; var newWin = open(strPath,'confirmpwd',mybars); newWin.focus();}
function openPromptNew(whichPage,strHeight,strWidth)
{ var mybars = 'directories=no,location=no,menubar=no,status=no,titlebar=no,scrollbars=no,toolbar=no,resizable=yes'; var newWin = open(whichPage,'newWindow',mybars); newWin.focus();}
function windowOpen1(varFileName,varWinName)
{ var winBars = "directories=yes,location=yes,menubar=yes,status=yes,titlebar=yes,scrollbars=yes,toolbar=yes,height=578,width=800,resizable=yes"; var winOpen= open(varFileName,varWinName,winBars); winOpen.focus();}
function test5()
{ plzLogin(); return false;}
function returnfunction(returnvalue)
{ document.getElementById("txtSMS").value=returnvalue;}
function alertMsgLength()
{ var strLength; var strMsg; if(document.getElementById('txtSMS').value.length>120)
{ strMsg=document.getElementById('txtSMS').value; document.getElementById('txtSMS').value=strMsg.substring(0,120); document.getElementById('txtSMS').focus(); return false;}
strLength=document.getElementById('txtSMS').value.length; document.getElementById('lblMaxChar').innerHTML=120-strLength+"/120";}
function cleartxt()
{ document.getElementById('txtSMS').value=''; document.getElementById('txtSMS').value = "Enter text here"; return false;}
function FitToContent(id, maxHeight){ var text = id && id.style ? id : document.getElementById(id); if ( !text ) return; var adjustedHeight = text.clientHeight; if ( !maxHeight || maxHeight > adjustedHeight ) { adjustedHeight = Math.max(text.scrollHeight, adjustedHeight); if ( maxHeight ) adjustedHeight = Math.min(maxHeight, adjustedHeight); if ( adjustedHeight > text.clientHeight ) text.style.height = adjustedHeight + "px";}}window.onload = function() { document.getElementById("txtsms").onkeyup = function() { FitToContent( this, 500 ) };}
function addToFav(id)
{ var mybars = 'directories=no,location=no,menubar=no,status=no,titlebar=no,toolbar=no,scrollbars=no,titlebar=no,width=300,height=150,resizable=no'; var newWin = open('../../vivah_matrimonials/user/AddtoFav.aspx?screenName='+id,'fav',mybars);}
function eMailProfile(id,username)
{ var mybars = 'directories=no,location=no,menubar=no,status=no,titlebar=no,srollbars=no,toolbar=no,height=280,width=280,resizable=no'; window.open('../../vivah_matrimonials/user/emailProfile.aspx?id='+id+'&username='+username,id+id,mybars)
}
function explainProfileMatch(vCtr,vWhat)
{ var mybars = 'directories=no,location=no,menubar=no,status=no,titlebar=no,scrollbars=no,toolbar=no,height=175,width=600,resizable=no'; window.open('../../vivah_matrimonials/user/profileMatchExplained.aspx?id='+vWhat,vCtr,mybars)
}
function showpp(id)
{ window.focus(); document.getElementById("divHomePageFeaturedProfiles").innerHTML = "<br><font color=red size=2>Loading. Please wait...</font><br><br>"; loadContent('../../vivah_matrimonials/user/mypartnersprefNew.aspx?id=' + id + '&rnd=' + getSeconds(),'divHomePageFeaturedProfiles');}
function doConfirm_Accept(id)
{ var strQueryVars = new String(""); strQueryVars = "id=" + id + "&type=photoContact"; var strPath
strPath = "../../vivah_matrimonials/introContact/confirmRequest.aspx?" + strQueryVars; var mybars = 'directories=no,location=no,menubar=no,status=no,titlebar=no,srollbars=no,toolbar=no,height=225,width=300,resizable=no'; var newWin = open(strPath,'confirmpwd',mybars); newWin.focus();}
function doConfirm(id,type)
{ var typeArray = new Array(); typeArray[0] = "photo"; typeArray[1] = "horo"; var strType = new String(""); strType = eval("typeArray[" + type + "]"); var strQueryVars = new String(""); strQueryVars = "id=" + id + "&type=" + strType; var strPath
strPath = "../../vivah_matrimonials/introContact/confirmRequest.aspx?" + strQueryVars; var mybars = 'directories=no,location=no,menubar=no,status=no,titlebar=no,srollbars=no,toolbar=no,height=90,width=300,resizable=no'; var newWin = open(strPath,'confirm',mybars); newWin.focus();}
function sendMyProfileConfirm(intToUserID)
{ var mybars = 'directories=no,location=no,menubar=no,status=no,titlebar=no,scrollbars=no,height=149,width=200,toolbar=no,resizable=no'; var newWin = open('../../vivah_matrimonials/user/SendConfirm.aspx?UserId='+intToUserID,'newWindow',mybars); newWin.focus();}
function openPhoto(vCtr,vWhat)
{ window.focus(); var mybars = 'directories=no,location=no,menubar=no,status=no,titlebar=no,scrollbars=yes,toolbar=no,height=780,width=710,resizable=yes'; window.open('../../vivah_matrimonials/user/openPhoto.aspx?photo='+vWhat,vCtr,mybars)
}
function up_launchWM( userID, destinationUserID )
{ window.open( "../../vivah_matrimonials/user/chatinitrequest.aspx?strDestinationUserID=" + destinationUserID, "WMWindow_" + up_replaceAlpha(userID) + "_" + up_replaceAlpha(destinationUserID), "width=427,height=150,toolbar=0,directories=0,menubar=0,status=0,location=0,scrollbars=0,resizable=1" );}
function up_replaceAlpha( strIn )
{ var strOut = ""; for( var i = 0 ; i < strIn.length ; i++ )
{ var cChar = strIn.charAt(i); if( ( cChar >= 'A' && cChar <= 'Z' ) || ( cChar >= 'a' && cChar <= 'z' ) || ( cChar >= '0' && cChar <= '9' ) )
{ strOut += cChar;}
else
{ strOut += "_";}
}
return strOut;}
checked=false; function selectAll ()
{ var check= document.getElementById('f51'); if (checked == false)
{ checked = true
}
else
{ checked = false
}
for (var i =0; i < check.elements.length; i++)
{ check.elements[i].checked = checked;}
}
function fncOptnMany(msg)
{ var val=''; var i; for(i=0;i<document.f51.elements.length;i++)
{ if(document.f51.elements[i].type == "checkbox")
{ if(document.f51.elements[i].checked == true)
{ if(document.f51.elements[i].value != 'on' )
{ if(val == '')
{ val=document.f51.elements[i].value;}
else
{ val=val + ','+document.f51.elements[i].value;}
}
}
}
}
var mybars = 'directories=no,location=no,menubar=no,status=no,titlebar=no,scrollbars=no,height=160,width=260,toolbar=no,resizable=no'; if(val != '')
{ var newWin = open("../../vivah_matrimonials/user/SendConfirm.aspx?action="+msg+"&ID="+val,'delSelected',mybars); newWin.focus();}
else
{ }
}
function openverification(whichPage,strHeight,strWidth)
{ var mybars = 'directories=no,location=no,menubar=no,status=no,titlebar=no,scrollbars=no,height='+strHeight+',width='+strWidth+',toolbar=no,resizable=yes'; var newWin = open(whichPage,'newWindow',mybars); newWin.focus();}
function openverification11(whichPage,strHeight,strWidth)
{ var mybars = 'directories=no,location=no,menubar=no,status=no,titlebar=no,fullscreen=yes,scrollbars=yes,toolbar=no,resizable=yes'; var newWin = open(whichPage,'newWindow',mybars); newWin.focus();}
function doConfirm(id,type)
{ var typeArray = new Array(); typeArray[0] = "photo"; typeArray[1] = "horo"; var strType = new String(""); strType = eval("typeArray[" + type + "]"); var strQueryVars = new String(""); strQueryVars = "id=" + id + "&type=" + strType; var strPath
strPath = "../../vivah_matrimonials/introContact/confirmRequest.aspx?" + strQueryVars; var mybars = 'directories=no,location=no,menubar=no,status=no,titlebar=no,srollbars=no,toolbar=no,height=90,width=300,resizable=no'; var newWin = open(strPath,'confirm',mybars); newWin.focus();}
function plzLogin()
{ openNewWin('../../logIn.aspx','176','428','no');}
function openPhoto(vCtr,vWhat)
{ window.focus(); var mybars = 'directories=no,location=no,menubar=no,status=no,titlebar=no,scrollbars=yes,toolbar=no,height=500,width=400,resizable=yes'; window.open('../../vivah_matrimonials/user/openPhoto.aspx?photo='+vWhat,vCtr,mybars)
}
function changeimage()
{ if (document.getElementById)
{ document.getElementById("Image5").src="../../pics/forpaid_upgradeOver.png";}
else
{ if (document.layers)
{ document.Image5.src="../../pics/forpaid_upgradeOver.png";}
else
{ document.all.Image5.src="../../pics/forpaid_upgradeOver.png";}
}
}
function changeimageOut()
{ if (document.getElementById)
{ document.getElementById("Image5").src="../../pics/forpaid_upgrade.png";}
else
{ if (document.layers)
{ document.Image5.src="../../pics/forpaid_upgrade.png";}
else
{ document.all.Image5.src="../../pics/forpaid_upgrade.png";}
}
}
function PaidDetailsDelay(idusername,p,pid)
{ setTimeout('PaidDetails("' + idusername + '","' + p + '")',500); setTimeout("TagToTip('T2TBalloon', ABOVE, true, TEXTALIGN, 'justify', FOLLOWMOUSE, false, 'EXCLUSIVE', true, FIX, ['" + pid + "', -100, -5])",500);}
function PaidDetailsSMS(idusername,p,pid)
{ setTimeout('PaidDetails("' + idusername + '","' + p + '")',500); setTimeout("TagToTip('T2TBalloon', ABOVE, true, TEXTALIGN, 'justify', FOLLOWMOUSE, false, 'EXCLUSIVE', true, FIX, ['" + pid + "', -35, -5])",500);}
function PaidDetailsPhoto(idusername,p,pid)
{ var browser=navigator.appName; var b_version=navigator.appVersion; var version=parseFloat(b_version); if (browser == "Netscape")
{ setTimeout('PaidDetails("' + idusername + '","' + p + '")',500); setTimeout("TagToTip('T2TBalloon', ABOVE, true, TEXTALIGN, 'justify', FOLLOWMOUSE, false, 'EXCLUSIVE', true, FIX, ['" + pid + "', 70, 50])",500);}
else
{ setTimeout('PaidDetails("' + idusername + '","' + p + '")',500); setTimeout("TagToTip('T2TBalloon', ABOVE, true, TEXTALIGN, 'justify', FOLLOWMOUSE, false, 'EXCLUSIVE', true, FIX, ['" + pid + "', 70, 90])",500);}
}
function PaidDetails(idusername,p)
{ if (p=="photo")
{ document.getElementById("LblPuname").innerHTML = "<b>" + idusername + "</b>";}
else
{ document.getElementById("LblPuname").innerHTML = "<b>Contact " + idusername + "</b>";}
if(p=="SMS" || p=="vivahmail")
{ document.getElementById("LblPunameDetails").innerHTML = "To send " + p + " to " + idusername + ", you <br />need to become a premium member";}
else
{ document.getElementById("LblPunameDetails").innerHTML = "To view " + idusername + "'s " + p + ', you <br />need to become a premium member';}
return true;}
function openNotes(whichPage)
{ var mybars = 'directories=no,location=no,menubar=no,status=no,titlebar=no,toolbar=no,scrollbars=no,titlebar=no,width=300,height=150,resizable=no'; var newWin = open(whichPage,'newWindow',mybars); newWin.focus();}

