﻿function checkemail(){
 var str=document.getElementById("txtEmail").value;
 var filter=/^.+@.+\..{2,3}$/

 if (filter.test(str))
    testresults=true
 else {
    alert("Please input a valid email address!")
    document.getElementById("txtEmail").value='Email';
    testresults=false
}
 return (testresults)
}

 function intOnly(i)
{
if(i.value.length>0)
{
i.value = i.value.replace(/[^\d]+/g, '');
}

}
function chkData()
{
	
var chkid=document.getElementById("txtUsername").value;
if(chkid=="")
{
    alert ("Enter Matri ID/EmailID");
    document.getElementById  ("txtUsername").focus();
     return false;
}
 if(chkid=="Enter Matri Id/Email Id")
{
    alert ("Enter Matri ID/EmailID");
    document.getElementById  ("txtUsername").focus();
     return false;
}
 var chkpass=document.getElementById("txtpassword").value;
 if (chkpass=="")
 {
 alert("Enter password");
 document.getElementById("txtpassword").focus();
 return false;
 }
 

}

function MM_openBrWindow(theURL,winName,features) { 
  RequestID=window.open(theURL,winName,features);
}
function CallRequest()
{

alert("hello");

}

function open_Crop(url_add)
   {
   window.open(url_add,'ImageCrop','width=450,height=450,left=100,top=100,menubar=no,status=no,location=no,toolbar=no,scrollbars=yes');
   }
function open_win(url_add)
   {
   window.open(url_add,'ViewProfile','width=1000,height=800,left=100,top=100,menubar=yes,status=yes,location=yes,toolbar=yes,scrollbars=yes');
   }
function open_win1(url_add)
  {
//  dhtmlmodal.open(url_add,'Forword','width=705,height=400,left=150,top=150,menubar=no,status=no,location=no,toolbar=no,scrollbars=no');
  Forword=dhtmlmodal.open('Forword', 'iframe',url_add , '', 'width=706px,height=407px,center=1,resize=0,scrolling=0');
  }

 
function opennewsletter(){
	emailwindow=dhtmlmodal.open('EmailBox', 'iframe', 'my_quickS.aspx', '', 'width=700px,height=444px,center=1,resize=0,scrolling=0');

} //End "opennewsletter" function
function openCitySearch()
{
 CitySearch=dhtmlmodal.open('CitySearch', 'iframe', 'my_CitySearch.aspx', '', 'width=700px,height=226px,center=1,resize=0,scrolling=0')
}
function openMatriById()
{
 MatriById=dhtmlmodal.open('MatriById', 'iframe', 'My_MatriById.aspx', '', 'width=700px,height=226px,center=1,resize=0,scrolling=0');

}
function openKeyWord()
{
KeyWord=dhtmlmodal.open('KeyWord', 'iframe', 'My_KeyWordSearch.aspx', '', 'width=700px,height=226px,center=1,resize=0,scrolling=0');

}
function openExpresh(url)
{
 Expresh=dhtmlmodal.open('ExpreshIntrest', 'iframe',url , '', 'width=700px,height=444px,center=2,resize=0,scrolling=0');

}
function openForgetPass()
{
 ForgetPass=dhtmlmodal.open('ForgetPass', 'iframe', 'My_ForgetPassword.aspx', '', 'width=800px,height=226px,center=1,resize=0,scrolling=0')
}
function openChPass(url)
{
 ChangePass=dhtmlmodal.open('ChangePass', 'iframe',url , '', 'width=710px,height=245px,center=2,resize=0,scrolling=0');

}
function openProtectPass(url)
{
 dhtmlmodal.open('ProtectPass', 'iframe', url, '', 'width=700px,height=226px,center=2,resize=0,scrolling=0');

}
function openRemoveProtectPass(url)
{
//alert(url);
 dhtmlmodal.open('ProtectPass', 'iframe',url, '', 'width=700px,height=226px,center=2,resize=0,scrolling=0');

}
function openCompose(url)
{
//alert(url);
  compose=dhtmlmodal.open('Compose', 'iframe',url, '', 'width=730px,height=450px,center=2,resize=0,scrolling=0');

}
function openStory(url)
{
//alert(url);
  story=dhtmlmodal.open('Succes', 'iframe',url, '', 'width=730px,height=530px,center=2,resize=0,scrolling=0');

}
function BecomePaid(url)
{

  BecomePaidMem = dhtmlmodal.open('BecomePaid', 'iframe',url, '', 'width=700px,height=130px,center=1,resize=0,scrolling=1');

}
function BecomeExpress(url)
{

  BecomeExp = dhtmlmodal.open('BecomeExpress', 'iframe',url, '', 'width=700px,height=117px,center=1,resize=0,scrolling=0');

}
function SentMsg(url)
{
	 Sent = dhtmlmodal.open('SentMessage', 'iframe',url, '','width=700px,height=450px,center=1,resize=0,scrolling=no');

}
function AllReady(url)
{
	 AllreadySent = dhtmlmodal.open('AllreadyMessage', 'iframe',url, '','width=700px,height=140px,center=1,resize=0,scrolling=no');
}

function openEIMess(url)
{

  Expresh =dhtmlmodal.open('EIMessage', 'iframe',url , '', 'width=725px,height=245px,center=1,resize=0,scrolling=0');
}
function openContact(url)
{
	 contact =dhtmlmodal.open('contact', 'iframe',url , '', 'width=700px,height=250px,center=1,resize=0,scrolling=no');
}
function SameGender(url)
{
  SameGen = dhtmlmodal.open('samegen', 'iframe',url, '', 'width=700px,height=108px,center=1,resize=0,scrolling=1');

}
function PhotoDecline(url)
{
   DeclineReq = dhtmlmodal.open('Decline', 'iframe',url, '', 'width=700px,height=108px,center=1,resize=0,scrolling=1');
}
function Compose(url)
{
  compose=dhtmlmodal.open('Compose', 'iframe',url, '', 'width=730px,height=450px,center=2,resize=0,scrolling=0');
}
function openDeleteP(url)
{
DeleteProfile=dhtmlmodal.open('Delete', 'iframe',url, '', 'width=730px,height=350px,center=2,resize=0,scrolling=0');
}
function openIgnorMem(url)
{
  IgnorMember = dhtmlmodal.open('ignor', 'iframe',url, '', 'width=700px,height=140px,center=1,resize=0,scrolling=1');

}
function openPhotoReqSent(url)
{

 SentRequest = dhtmlmodal.open('SentReq', 'iframe',url, '', 'width=500px,height=140px,center=1,resize=0,scrolling=1');
 }
 function openPhotoReqDecline(url)
 {

  DeclineRequest = dhtmlmodal.open('SentReq', 'iframe',url, '', 'width=500px,height=140px,center=1,resize=0,scrolling=1');
 }
 function OpenDelMem(url)
 {
   DelMember = dhtmlmodal.open('User', 'iframe',url, '', 'width=700px,height=108px,center=1,resize=0,scrolling=1');

 }
 
 function openDelete(url)
 {
    DelBlog = dhtmlmodal.open('dele', 'iframe',url, '', 'width=700px,height=108px,center=1,resize=0,scrolling=1');

 }
function chkwsNull()
{
//var st=document.getElementById("txtName").value;
//var ag = document.getElementById('<%= txtDD.ClientID %>').value;
//alert(ag);
//alert(ag.options[ag.selectedIndex]);
//var SelectedValue = ag.options[ag.selectedIndex].innerText;

//alert(SelectedValue);
//if(ag==0)
//{
//	alert("aa");
//return false;
//}
//return false;
/*if(st=="Name")
{
alert("Enter Name");
document.getElementById("txtName").value="";
document.getElementById("txtName").focus();
return false;
}
if(st=="")
{
alert("Enter Name");
document.getElementById("txtName").value="";
document.getElementById("txtName").focus();
return false;
}
if(ag.value=="DD")
{
alert("Enter Birth Date");
document.getElementById("txtDD").value="";
document.getElementById("txtDD").focus();
return false;
}
if(ag=="")
{
alert("Enter Birth Date");
document.getElementById("txtDD").value="";
document.getElementById("txtDD").focus();
return false;
}
if(mm=="MM")
{
alert("Enter Birth Month");
document.getElementById("txtMM").value="";
document.getElementById("txtMM").focus();
return false;
}
if(mm=="")
{
alert("Enter Birth Month");
document.getElementById("txtMM").value="";
document.getElementById("txtMM").focus();
return false;
}

if(yy=="YYYY")
{
alert("Enter Birth Year");
document.getElementById("txtYYYY").value="";
document.getElementById("txtYYYY").focus();
return false;
}
if(yy=="")
{
alert("Enter Birth Year");
document.getElementById("txtYYYY").value="";
document.getElementById("txtYYYY").focus();
return false;
}

if(em=="Email")
{
alert("Enter EMail ID");
document.getElementById("txtEmail").value="";
document.getElementById("txtEmail").focus();
return false;
}
if(em=="")
{
alert("Enter EMail ID");
document.getElementById("txtEmail").value="";
document.getElementById("txtEmail").focus();
return false;
}*/

 
}



function RefferFriend()
{
var st=document.getElementById("yourname").value;
if(st=="")
{
alert("Enter Your Name");
document.getElementById("yourname").value="";
document.getElementById("yourname").focus();
return false;
}

var email=document.getElementById("yourmail").value;
if(email=="")
{
alert("Enter Your Email");
document.getElementById("yourmail").value="";
document.getElementById("yourmail").focus();
return false;
}

var fname=document.getElementById("fname1").value;
if(fname=="")
{
alert("Enter Your Friend name");
document.getElementById("fname1").value="";
document.getElementById("fname1").focus();
return false;
}
var femail=document.getElementById("txtmail1").value;
if(femail=="")
{
alert("Enter Your Friend Email");
document.getElementById("txtmail1").value="";
document.getElementById("txtmail1").focus();
return false;
}
return true;
}


function disp(i)
{
if(i.value.length<0)
{
i.value="Name";

}
}




