var ajobj;
var DOMAINARRAY=new Array();
var ad_bar_val=window.location.href;
ad_bar_val=ad_bar_val.toLowerCase();
var bar_val_st1=ad_bar_val.substring(ad_bar_val.indexOf('.'),ad_bar_val.indexOf('.com')+4);
var bar_val_st2=bar_val_st1.replace('.','');bar_val_st2=bar_val_st2.replace('.com','');bar_val_st2=bar_val_st2.replace('matrimony','');
DOMAINARRAY['domainnameimgs']="imgs"+bar_val_st1; 
DOMAINARRAY['domainnameshort']=bar_val_st2;
DOMAINARRAY['domainmodule'] = "profile"+bar_val_st1;
DOMAINARRAY['domainnameweb'] = "www"+bar_val_st1; 
DOMAINARRAY['domainnamebmimage'] = "image"+bar_val_st1;
DOMAINARRAY['domainnamebmimg'] = "img"+bar_val_st1; 
DOMAINARRAY['domainnamebmlong'] = bar_val_st2+"matrimony.com";
var upimg="http://"+DOMAINARRAY['domainnameimgs']+"/bmimages/rp-arrow-up.gif";
var downimg="http://"+DOMAINARRAY['domainnameimgs']+"/bmimages/rp-arrow-down.gif";

function $BN(dn,s) { if ($(dn)){var d=$(dn);(s=="b") ? ss="block" : ss="none"; if(d!='') { d.style.display=ss; } }}
function dv(obj){if(document.getElementById){if(document.getElementById(obj)!=null){return document.getElementById(obj)}else{return"";}}else if(document.all){if(document.all[obj]!=null){return document.all[obj]}else{return"";}}}function showscore(c){var c;var x=dv('ardown');var x1=dv('scoreshowdown');var y=dv('arup');var y1=dv('scoreshowup');y1.style.display="block";if(c.length<1){return;}if(dv(c).style.display=="none"){dv(c).style.display="block";x.style.display="none";x1.style.display="none";y.style.display="block";y1.style.display="block";space.style.display="none";}else{dv(c).style.display="none";x.style.display="block";x1.style.display="block";y.style.display="none";y1.style.display="none";space.style.display="block";}}var openval="";var imgval="";
function promotioncontent(divid,imgid){if((dv('faq1')!="null")&&(dv('faq1')!="")){if(divid!="faq1"&&dv("faq1").style.display=="block"){dv("faq1").style.display="none";dv("faq1-title").innerHTML="";dv("faq1-title").innerHTML="<img src="+upimg+">";}}if(openval==divid){if(dv(openval).style.display=="block"){dv(imgval).innerHTML="";dv(imgval).innerHTML="<img src="+upimg+">";dv(openval).style.display="none";}else{dv(imgval).innerHTML="";dv(imgval).innerHTML="<img src="+downimg+">";dv(openval).style.display="block";}}else{if(openval!=""){dv(openval).style.display="none";dv(imgval).innerHTML="";dv(imgval).innerHTML="<img src="+upimg+">";}if(dv(divid).style.display=="none"){dv(imgid).innerHTML="";dv(imgid).innerHTML="<img src="+downimg+">";dv(divid).style.display="block";}else{dv(imgid).innerHTML="";dv(imgid).innerHTML="<img src="+upimg+">";dv(divid).style.display="none";}}openval=divid;imgval=imgid;}function openpop(wname,wurl,wscroll,wresize,wwidth,wheight){try{var otheropt="top=250,left=525,bottom=0,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars="+wscroll+",resize="+wresize+",width="+wwidth+",height="+wheight;var newwin=window.open(wurl,wname,otheropt);newwin.focus();} catch (e) {}}var succObj='';function successstorynxt(argNum,argdomain){var argUrl="/successstory/successstorypop.php?fileno="+argNum+"&domain="+argdomain;succObj=MakeGetRequest(argUrl,'succDiv');}function succDiv(){if(succObj.readyState==4){if(succObj.status==200){document.getElementById('dispcontent').style.display="block";document.getElementById('dispcontent').innerHTML=succObj.responseText;}else{alert('There was a problem with the request.');}}}function successstorypop(argNum,argdomain){var argUrl="/successstory/successstorypop.php?fileno="+argNum+"&domain="+argdomain;
openpop('successstory',argUrl,1,0,630,500);}
var succrightObj = '';
function successrightrandom(){
var argUrl="/successstory/successright.php?sucp="+genNumbers();
//succrightObj=MakeGetRequest(argUrl,'succRightDiv');
if($('rpanelsuccessstory')){ $('rpanelsuccessstory').src=argUrl; }
}function succRightDiv(){if(succrightObj.readyState==4){if(succrightObj.status==200){if($('successrightdiv')) {$('successrightdiv').style.display="block";$('successrightdiv').innerHTML=succrightObj.responseText;}}else{alert('There was a problem with the request.');}}}

var healthRequest = '';
function funHealthView(){
	frmName=document.healthProfileView;
	if((frmName.healthPassword.value).replace(' /\s+/','')=='')	{
		$('protectspan').innerHTML='Please enter the Health Profile password';
		frmName.healthPassword.focus();
		return false;
	}else{
	var parameter = 'ID='+frmName.ID.value+'&healthPassword='+frmName.healthPassword.value+'&healthProfilePwd=yes' + genNumbers();
	healthRequest = MakePostRequest('/healthprofile/health-profile-password.php?',parameter,'healthResult');
	return false;
	}
	return false;
}//funHealthView


function healthResult()	{
	if (healthRequest.readyState == 4) {
		if (healthRequest.status == 200) {
			$('protectspan').innerHTML='';
			if (healthRequest.responseText.length > 1) {
				document.getElementById('healthProfileView').innerHTML	= healthRequest.responseText;
			} 
			else  {
			 document.getElementById('healthContent').innerHTML	 = 'Sorry, the Health Profile password you have entered is incorrect.'; }
		 }
		 else alert('There was a problem with the request.'); 
	}
}

function healthProtect(et,id) {
	close_div();
	if (et=='R'){ 
		document.body.scrollTop=0;fade('','fadediv','dispdiv',570,'','','http://' + DOMAINARRAY['domainmodule'] +'/inbox/inbcontact.php?ID='+ id +'&PUP=Y&inline=1','http://'+ DOMAINARRAY['domainnameimgs']+'/scripts/getoptionsei.js','dispcontent','','');
	} else { document.location.href= 'http://' + DOMAINARRAY['domainnameweb'] + '/payments/paymentoptions.php'; }
}