function openPwd(){
window.open("forget-pwd.asp","GetPass","width=300,height=180");
}
var xmlHttp;
function showHint(_1,_2){
if(_1.length==0){
document.getElementById("txtHint").innerHTML="";
return;
}
xmlHttp=GetXmlHttpObject();
if(xmlHttp==null){
alert("Browser does not support HTTP Request");
return;
}
var _3="inner.asp";
_3=_3+"?q="+_1;
_3=_3+"&flag="+_2;
xmlHttp.onreadystatechange=stateChanged;
xmlHttp.open("GET",_3,true);
xmlHttp.send(null);
}
function stateChanged(){
if(xmlHttp.readyState==4||xmlHttp.readyState=="complete"){
document.getElementById("txtHint").innerHTML=xmlHttp.responseText;
}
}
function GetXmlHttpObject(){
var _4=null;
if(window.XMLHttpRequest){
_4=new XMLHttpRequest();
}else{
if(window.ActiveXObject){
_4=new ActiveXObject("Microsoft.XMLHTTP");
}
}
return _4;
}
var xmlHttp;
function showHint_1(_5,_6){
if(_5.length==0){
document.getElementById("txtHint2").innerHTML="";
return;
}
xmlHttp=GetXmlHttpObject_1();
if(xmlHttp==null){
alert("Browser does not support HTTP Request");
return;
}
var _7="inner_1.asp";
_7=_7+"?q="+_5;
_7=_7+"&sg="+_6;
_7=_7+"&sid="+Math.random();
xmlHttp.onreadystatechange=stateChanged_1;
xmlHttp.open("GET",_7,true);
xmlHttp.send(null);
}
function showHint_anon(_8,_9,_a){
xmlHttp=GetXmlHttpObject_1();
if(xmlHttp==null){
alert("Browser does not support HTTP Request");
return;
}
elem=document.getElementById("txt_display1");
elem.innerHTML="<b>"+document.mainform.ProductName.value;
var _b="inner_anon.asp";
_b=_b+"?q="+_8;
_b=_b+"&sg="+_9;
_b=_b+"&flag="+_a;
xmlHttp.onreadystatechange=stateChanged_1;
xmlHttp.open("GET",_b,true);
xmlHttp.send(null);
}
function stateChanged_1(){
if(xmlHttp.readyState==4||xmlHttp.readyState=="complete"){
document.getElementById("txtHint2").innerHTML=xmlHttp.responseText;
}
}
function GetXmlHttpObject_1(){
var _c=null;
if(window.XMLHttpRequest){
_c=new XMLHttpRequest();
}else{
if(window.ActiveXObject){
_c=new ActiveXObject("Microsoft.XMLHTTP");
}
}
return _c;
}
var xmlHttp;
function showHint_interest(_d){
if(_d.length==0){
document.getElementById("txtHint_interest").innerHTML="";
return;
}
xmlHttp=GetXmlHttpObject_interest();
if(xmlHttp==null){
alert("Browser does not support HTTP Request");
return;
}
var _e="inner_2.asp";
_e=_e+"?q="+_d;
_e=_e+"&sid="+Math.random();
xmlHttp.onreadystatechange=stateChanged_interest;
xmlHttp.open("GET",_e,true);
xmlHttp.send(null);
}
function stateChanged_interest(){
if(xmlHttp.readyState==4||xmlHttp.readyState=="complete"){
document.getElementById("txtHint_interest").innerHTML=xmlHttp.responseText;
}
}
function GetXmlHttpObject_interest(){
var _f=null;
if(window.XMLHttpRequest){
_f=new XMLHttpRequest();
}else{
if(window.ActiveXObject){
_f=new ActiveXObject("Microsoft.XMLHTTP");
}
}
return _f;
}
function showHint_pass(str){
if(str.length==0){
document.getElementById("txtHint_pass").innerHTML="";
return;
}
xmlHttp=GetXmlHttpObject_pass();
if(xmlHttp==null){
alert("Browser does not support HTTP Request");
return;
}
var url="inner_3.asp";
url=url+"?q="+str;
url=url+"&sid="+Math.random();
xmlHttp.onreadystatechange=stateChanged_pass;
xmlHttp.open("GET",url,true);
xmlHttp.send(null);
}
function stateChanged_pass(){
if(xmlHttp.readyState==4||xmlHttp.readyState=="complete"){
document.getElementById("txtHint_pass").innerHTML=xmlHttp.responseText;
}
}
function GetXmlHttpObject_pass(){
var _12=null;
if(window.XMLHttpRequest){
_12=new XMLHttpRequest();
}else{
if(window.ActiveXObject){
_12=new ActiveXObject("Microsoft.XMLHTTP");
}
}
return _12;
}
var xmlHttp;
function showPassword(str){
if(str.length==0){
document.getElementById("txtHint2").innerHTML="";
return;
}
xmlHttp=GetXmlHttpObject2();
if(xmlHttp==null){
alert("Browser does not support HTTP Request");
return;
}
var url="password.asp";
url=url+"?q="+str;
url=url+"&sid="+Math.random();
xmlHttp.onreadystatechange=stateChanged2;
xmlHttp.open("GET",url,true);
xmlHttp.send(null);
}
function stateChanged2(){
if(xmlHttp.readyState==4||xmlHttp.readyState=="complete"){
document.getElementById("txtHint").innerHTML=xmlHttp.responseText;
}
}
function GetXmlHttpObject2(){
var _15=null;
if(window.XMLHttpRequest){
_15=new XMLHttpRequest();
}else{
if(window.ActiveXObject){
_15=new ActiveXObject("Microsoft.XMLHTTP");
}
}
return _15;
}
var xmlHttp;
function showHint_ses(str){
if(str.length==0){
document.getElementById("txtHint_ses").innerHTML="";
return;
}
xmlHttp=GetXmlHttpObject_ses();
if(xmlHttp==null){
alert("Browser does not support HTTP Request");
return;
}
var url="session.asp";
url=url+"?q="+str;
url=url+"&sid="+Math.random();
xmlHttp.onreadystatechange=stateChanged_ses;
xmlHttp.open("GET",url,true);
xmlHttp.send(null);
}
function stateChanged_ses(){
if(xmlHttp.readyState==4||xmlHttp.readyState=="complete"){
document.getElementById("txtHint_ses").innerHTML=xmlHttp.responseText;
}
}
function GetXmlHttpObject_ses(){
var _18=null;
if(window.XMLHttpRequest){
_18=new XMLHttpRequest();
}else{
if(window.ActiveXObject){
_18=new ActiveXObject("Microsoft.XMLHTTP");
}
}
return _18;
}
var xmlHttp;
function showFinalData1(str){
if(str.length==0){
document.getElementById("txtHint_final").innerHTML="";
return;
}
xmlHttp=GetXmlHttpObject1();
if(xmlHttp==null){
alert("Browser does not support HTTP Request");
return;
}
var url="final.asp";
url=url+"?q="+str;
url=url+"&sid="+Math.random();
xmlHttp.onreadystatechange=stateChanged1;
xmlHttp.open("GET",url,true);
xmlHttp.send(null);
}
function stateChanged1(){
if(xmlHttp.readyState==4||xmlHttp.readyState=="complete"){
document.getElementById("txtHint_final").innerHTML=xmlHttp.responseText;
}
}
function GetXmlHttpObject1(){
var _1b=null;
if(window.XMLHttpRequest){
_1b=new XMLHttpRequest();
}else{
if(window.ActiveXObject){
_1b=new ActiveXObject("Microsoft.XMLHTTP");
}
}
return _1b;
}
var xmlHttp;
function showFinalData11(str){
if(str.length==0){
document.getElementById("txtHint_final11").innerHTML="";
return;
}
xmlHttp=GetXmlHttpObject11();
if(xmlHttp==null){
alert("Browser does not support HTTP Request");
return;
}
var url="final1.asp";
url=url+"?q="+str;
url=url+"&sid="+Math.random();
xmlHttp.onreadystatechange=stateChanged11;
xmlHttp.open("GET",url,true);
xmlHttp.send(null);
}
function stateChanged11(){
if(xmlHttp.readyState==4||xmlHttp.readyState=="complete"){
document.getElementById("txtHint_final11").innerHTML=xmlHttp.responseText;
}
}
function GetXmlHttpObject11(){
var _1e=null;
if(window.XMLHttpRequest){
_1e=new XMLHttpRequest();
}else{
if(window.ActiveXObject){
_1e=new ActiveXObject("Microsoft.XMLHTTP");
}
}
return _1e;
}
var xmlHttp;
function showHint_page1(str,_20){
if(str.length==0){
document.getElementById("txtHint_page1").innerHTML="";
return;
}
xmlHttp=GetXmlHttpObject_ses();
if(xmlHttp==null){
alert("Browser does not support HTTP Request");
return;
}
var url="page1.asp";
url=url+"?q="+str;
url=url+"&flag1="+_20;
url=url+"&sid="+Math.random();
xmlHttp.onreadystatechange=stateChanged_page1;
xmlHttp.open("GET",url,true);
xmlHttp.send(null);
}
function stateChanged_page1(){
if(xmlHttp.readyState==4||xmlHttp.readyState=="complete"){
document.getElementById("txtHint_page1").innerHTML=xmlHttp.responseText;
}
}
function GetXmlHttpObject_page1(){
var _22=null;
if(window.XMLHttpRequest){
_22=new XMLHttpRequest();
}else{
if(window.ActiveXObject){
_22=new ActiveXObject("Microsoft.XMLHTTP");
}
}
return _22;
}
var xmlHttp;
function showHint_page2(str){
if(str.length==0){
document.getElementById("txtHint_page122").innerHTML="";
return;
}
xmlHttp=GetXmlHttpObject_page2();
if(xmlHttp==null){
alert("Browser does not support HTTP Request");
return;
}
var url="page2.asp";
url=url+"?q="+str;
url=url+"&sid="+Math.random();
xmlHttp.onreadystatechange=stateChanged_page2;
xmlHttp.open("GET",url,true);
xmlHttp.send(null);
}
function stateChanged_page2(){
if(xmlHttp.readyState==4||xmlHttp.readyState=="complete"){
document.getElementById("txtHint_page122").innerHTML=xmlHttp.responseText;
}
}
function GetXmlHttpObject_page2(){
var _25=null;
if(window.XMLHttpRequest){
_25=new XMLHttpRequest();
}else{
if(window.ActiveXObject){
_25=new ActiveXObject("Microsoft.XMLHTTP");
}
}
return _25;
}
var EW_dateSep;
if(EW_dateSep==""){
EW_dateSep="/";
}
function EW_submitForm(_26){
if(EW_HTMLArea){
for(var i=0;i<EW_HTMLArea.length;i++){
var _28=EW_HTMLArea[i].getHTML();
if(_28=="<p />"||_28=="<br />\n"){
_28="";
}
EW_HTMLArea[i]._textArea.value=_28;
}
}
if(EW_checkMyForm(_26)){
_26.submit();
}
}
function EW_isHTMLArea(_29,_2a){
return (_2a=="TEXTAREA"&&EW_HTMLArea&&_29.style&&_29.style.display&&_29.style.display=="none");
}
function EW_onError(_2b,_2c,_2d,_2e){
alert(_2e);
if(_2d=="RADIO"||_2d=="CHECKBOX"){
if(_2c[0]){
_2c[0].focus();
}else{
_2c.focus();
}
}else{
if(!EW_isHTMLArea(_2c,_2d)){
_2c.focus();
}
}
if(_2d=="TEXT"||_2d=="PASSWORD"||_2d=="TEXTAREA"||_2d=="FILE"){
if(!EW_isHTMLArea(_2c,_2d)){
_2c.select();
}
}
return false;
}
function EW_hasValue(obj,_30){
if(_30=="TEXT"||_30=="PASSWORD"||_30=="TEXTAREA"||_30=="FILE"){
if(obj.value.length==0){
return false;
}else{
return true;
}
}else{
if(_30=="SELECT"){
if(obj.type!="select-multiple"&&obj.selectedIndex==0){
return false;
}else{
if(obj.type=="select-multiple"&&obj.selectedIndex==-1){
return false;
}else{
return true;
}
}
}else{
if(_30=="RADIO"||_30=="CHECKBOX"){
if(obj[0]){
for(i=0;i<obj.length;i++){
if(obj[i].checked){
return true;
}
}
}else{
return (obj.checked);
}
return false;
}
}
}
}
function EW_checkinteger(_31){
if(_31.length==0){
return true;
}
var _32=".";
var _33;
_33=_31.indexOf(_32);
if(_33<1){
return EW_checknumber(_31);
}else{
return false;
}
}
function EW_numberrange(_34,_35,_36){
if(_35!=null){
if(_34<_35){
return false;
}
}
if(_36!=null){
if(_34>_36){
return false;
}
}
return true;
}
function EW_checknumber(_37){
if(_37.length==0){
return true;
}
var _38=" .+-0123456789";
var _39=" .0123456789";
var _3a;
var _3b=false;
var _3c=false;
var _3d=false;
_3a=_38.indexOf(_37.charAt(0));
if(_3a==1){
_3b=true;
}else{
if(_3a<1){
return false;
}
}
for(var i=1;i<_37.length;i++){
_3a=_39.indexOf(_37.charAt(i));
if(_3a<0){
return false;
}else{
if(_3a==1){
if(_3b){
return false;
}else{
_3b=true;
}
}else{
if(_3a==0){
if(_3b||_3d){
_3c=true;
}
}else{
if(_3c){
return false;
}else{
_3d=true;
}
}
}
}
}
return true;
}
function EW_checkrange(_3f,_40,_41){
if(_3f.length==0){
return true;
}
if(!EW_checknumber(_3f)){
return false;
}else{
return (EW_numberrange((eval(_3f)),_40,_41));
}
return true;
}
function EW_checkemail(_42){
if(_42.length==0){
return true;
}
if(!(_42.indexOf("@")>-1&&_42.indexOf(".")>-1)){
return false;
}
return true;
}
function ew_confirm(msg){
var _44=confirm(msg);
if(_44){
return true;
}else{
return false;
}
}
function ew_mouseover(row){
row.mover=true;
if(!row.selected){
if(usecss){
row.className=rowmoverclass;
}else{
row.style.backgroundColor=rowmovercolor;
}
}
}
function ew_mouseout(row){
row.mover=false;
if(!row.selected){
ew_setcolor(row);
}
}
function ew_setcolor(row){
if(row.selected){
if(usecss){
row.className=rowselectedclass;
}else{
row.style.backgroundColor=rowselectedcolor;
}
}else{
if(row.edit){
if(usecss){
row.className=roweditclass;
}else{
row.style.backgroundColor=roweditcolor;
}
}else{
if((row.rowIndex-firstrowoffset)%2){
if(usecss){
row.className=rowaltclass;
}else{
row.style.backgroundColor=rowaltcolor;
}
}else{
if(usecss){
row.className=rowclass;
}else{
row.style.backgroundColor=rowcolor;
}
}
}
}
}
function ew_click(row){
if(row.deleteclicked){
row.deleteclicked=false;
}else{
var _49=row.selected;
ew_clearselected();
if(!row.deleterow){
row.selected=!_49;
}
ew_setcolor(row);
}
}
function ew_clearselected(){
var _4a=document.getElementById(tablename);
for(var i=firstrowoffset;i<_4a.rows.length;i++){
var _4c=_4a.rows[i];
if(_4c.selected&&!_4c.deleterow){
_4c.selected=false;
ew_setcolor(_4c);
}
}
}
function ew_cleardelete(){
var _4d=document.getElementById(tablename);
for(var i=firstrowoffset;i<_4d.rows.length;i++){
var _4f=_4d.rows[i];
_4f.deleterow=false;
}
}
function ew_clickall(_50){
var _51=document.getElementById(tablename);
for(var i=firstrowoffset;i<_51.rows.length;i++){
var _53=_51.rows[i];
_53.selected=_50.checked;
_53.deleterow=_50.checked;
ew_setcolor(_53);
}
}
function ew_clickmultidelete(_54){
ew_clearselected();
var _55=document.getElementById(tablename);
for(var i=firstrowoffset;i<_55.rows.length;i++){
var _57=_55.rows[i];
if(_57.mover){
_57.deleteclicked=true;
_57.deleterow=_54.checked;
_57.selected=_54.checked;
ew_setcolor(_57);
break;
}
}
}
var xmlHttp;
function showHint_page2_top(str){
if(str.length==0){
document.getElementById("txtHint_page2_top").innerHTML="";
return;
}
xmlHttp=GetXmlHttpObject_page2_top();
if(xmlHttp==null){
alert("Browser does not support HTTP Request");
return;
}
var url="page2_top.asp";
url=url+"?q="+str;
url=url+"&sid="+Math.random();
xmlHttp.onreadystatechange=stateChanged_page2_top;
xmlHttp.open("GET",url,true);
xmlHttp.send(null);
}
function stateChanged_page2_top(){
if(xmlHttp.readyState==4||xmlHttp.readyState=="complete"){
document.getElementById("txtHint_page2_top").innerHTML=xmlHttp.responseText;
}
}
function GetXmlHttpObject_page2_top(){
var _5a=null;
if(window.XMLHttpRequest){
_5a=new XMLHttpRequest();
}else{
if(window.ActiveXObject){
_5a=new ActiveXObject("Microsoft.XMLHTTP");
}
}
return _5a;
}
var xmlHttp;
function showHint_page2_bot(str){
if(str.length==0){
document.getElementById("txtHint_page2_bot").innerHTML="";
return;
}
xmlHttp=GetXmlHttpObject_page2_bot();
if(xmlHttp==null){
alert("Browser does not support HTTP Request");
return;
}
var url="page2_bot.asp";
url=url+"?q="+str;
url=url+"&sid="+Math.random();
xmlHttp.onreadystatechange=stateChanged_page2_bot;
xmlHttp.open("GET",url,true);
xmlHttp.send(null);
}
function stateChanged_page2_bot(){
if(xmlHttp.readyState==4||xmlHttp.readyState=="complete"){
document.getElementById("txtHint_page2_bot").innerHTML=xmlHttp.responseText;
}
}
function GetXmlHttpObject_page2_bot(){
var _5d=null;
if(window.XMLHttpRequest){
_5d=new XMLHttpRequest();
}else{
if(window.ActiveXObject){
_5d=new ActiveXObject("Microsoft.XMLHTTP");
}
}
return _5d;
}
var xmlHttp;
function showHint_page2_botid(str){
if(str.length==0){
document.getElementById("txtHint_page2_botid").innerHTML="";
return;
}
xmlHttp=GetXmlHttpObject_page2_botid();
if(xmlHttp==null){
alert("Browser does not support HTTP Request");
return;
}
var url="page2_botid.asp";
url=url+"?q="+str;
url=url+"&sid="+Math.random();
xmlHttp.onreadystatechange=stateChanged_page2_botid;
xmlHttp.open("GET",url,true);
xmlHttp.send(null);
}
function stateChanged_page2_botid(){
if(xmlHttp.readyState==4||xmlHttp.readyState=="complete"){
document.getElementById("txtHint_page2_botid").innerHTML=xmlHttp.responseText;
}
}
function GetXmlHttpObject_page2_botid(){
var _60=null;
if(window.XMLHttpRequest){
_60=new XMLHttpRequest();
}else{
if(window.ActiveXObject){
_60=new ActiveXObject("Microsoft.XMLHTTP");
}
}
return _60;
}
function rightTrim(_61){
while(_61.substring(_61.length-1,_61.length)==" "){
_61=_61.substring(0,_61.length-1);
}
return _61;
}
function setVisibility(id,_63){
elem=document.getElementById(id).style;
elem.display=_63;
}
function select_gift(_64,ses){
document.mainform.txt_pass.value=null;
document.mainform.txt_chkval1.checked=null;
document.mainform.txt_name1.value=null;
document.mainform.txt_age1.value=null;
document.mainform.txt_gen1.value=null;
document.mainform.txt_occassion_date.value=0;
document.mainform.txt_occassion_month.value=0;
document.mainform.txt_occassion_year.value=0;
document.mainform.txt_occassion.value=0;
document.mainform.txt_relation_id.value=0;
document.mainform.txt_g_userId.value=0;
document.mainform.txt_intrest1.value=0;
document.mainform.txt_intrest2.value=0;
document.mainform.txt_intrest3.value=0;
document.mainform.txt_remindBDate_date.value=0;
document.mainform.txt_remindBDate_month.value=0;
document.remindBDate.cfDay.selectedIndex=0;
document.remindBDate.cfMonth.selectedIndex=0;
document.mainform.isshow.value=null;
document.mainform.gift_id.value=_64;
if(ses==0){
showHint_anon(document.mainform.txt_occassion.value,_64,1);
}else{
showHint_1(2,1);
}
setVisibility("Page5","inline");
}
function save_gift(rid){
gid=(document.mainform.gift_id.value);
s_gift(rid,gid);
setVisibility("Page5","none");
setVisibility("final4Gift","inline");
}
function goback(){
setVisibility("Page4","none");
setVisibility("Page5","inline");
}
var xmlHttp;
function s_gift(str,_68){
if(str.length==0){
return;
}
xmlHttp=GetXmlHttpObject_s();
if(xmlHttp==null){
alert("Browser does not support HTTP Request");
return;
}
var url="update.asp";
url=url+"?rid="+str;
url=url+"&gid="+_68;
url=url+"&sid="+Math.random();
xmlHttp.onreadystatechange=stateChanged_s;
xmlHttp.open("GET",url,true);
xmlHttp.send(null);
}
function stateChanged_s(){
if(xmlHttp.readyState==4||xmlHttp.readyState=="complete"){
}
}
function GetXmlHttpObject_s(){
var _6a=null;
if(window.XMLHttpRequest){
_6a=new XMLHttpRequest();
}else{
if(window.ActiveXObject){
_6a=new ActiveXObject("Microsoft.XMLHTTP");
}
}
return _6a;
}
function validdate1(_6b,_6c,_6d){
cVal_year=_6d;
cVal_Month=_6c;
cVal_Day=_6b;
var i;
i=cVal_Month;
mth=31;
if(i==4||i==6||i==9||i==11){
mth=30;
}
if(i==2){
mth=28;
if(cVal_year%4==0){
if(cVal_year%100!=0){
mth=29;
}
}
}
var _6f=new Date();
var _70=_6f.getMonth()+1;
var _71=_6f.getDate();
var _72=_6f.getYear();
if(cVal_year==_72){
if(cVal_Month==_70){
if((cVal_Day>=_71)&&(cVal_Day<=mth)){
return false;
}else{
return true;
}
}
if(cVal_Month<_70){
return true;
}
if(cVal_Month>_70){
if(cVal_Day<mth){
return false;
}else{
return true;
}
}
}
if(cVal_year>_72){
if(cVal_Day>mth){
return true;
}else{
false;
}
}
if(cVal_year<_72){
return true;
}
}
function validdate(_73,_74){
cVal_Month=_74;
cVal_Day=_73;
var i;
i=cVal_Month;
mth=31;
if(i==4||i==6||i==9||i==11){
mth=30;
}
if(i==2){
mth=28;
var _76=new Date();
var _77=_76.getYear();
if(_77%4==0){
if(_77%100!=0){
mth=29;
}
}
}
if(cVal_Day>mth){
return true;
}else{
false;
}
}
function backtomain(){
setVisibility("Page2","none");
showHint_1(document.mainform.txt_occassion.value,2);
setVisibility("Page5","inline");
}
function close_wind(){
setVisibility("Page1","none");
setVisibility("Page2","none");
setVisibility("Page3","none");
setVisibility("Page4","none");
setVisibility("Page5","none");
setVisibility("Page6","none");
setVisibility("final","none");
setVisibility("final4Gift","none");
}
function show_main(_78){
close_wind();
document.mainform.txt_pass.value=null;
document.mainform.txt_chkval1.checked=null;
document.mainform.txt_name1.value=null;
document.mainform.txt_age1.value=null;
document.mainform.txt_gen1.value=null;
document.mainform.txt_occassion_date.value=0;
document.mainform.txt_occassion_month.value=0;
document.mainform.txt_occassion_year.value=0;
document.mainform.txt_occassion.value=0;
document.mainform.txt_relation_id.value=0;
document.mainform.txt_g_userId.value=0;
document.mainform.txt_intrest1.value=0;
document.mainform.txt_intrest2.value=0;
document.mainform.txt_intrest3.value=0;
document.mainform.txt_remindBDate_date.value=0;
document.mainform.txt_remindBDate_month.value=0;
document.mainform.txt_set_birthday.value==null;
document.remindBDate.cfDay.selectedIndex=0;
document.remindBDate.cfMonth.selectedIndex=0;
document.mainform.isshow.value=null;
document.mainform.ProductName.value=null;
document.getElementById("txtHint_page1").innerHTML="";
showHint_page1("-1","-1");
setVisibility("Page1","inline");
}
function getfinaldata(rid,oid,_7b,_7c,_7d){
document.getElementById("txtHint_final12").innerHTML="The Reminder for "+_7c+" is almost complete!";
document.getElementById("span_final").innerHTML="<b>The Reminder  for "+_7c+" was successfully saved. ";
document.remindBDate.txt_bname2.value=_7c+"'s Birthday";
document.mainform.txt_occassion.value=oid;
document.mainform.txt_set_birthday.value=oid;
document.mainform.txt_g_userId.value=rid;
document.mainform.txt_relation_id.value=_7d;
if(_7b=="1"){
getfinalFromMainForm1();
setVisibility("Page5","none");
setVisibility("final","inline");
}else{
document.mainform.txt_remindBDate_date.value="";
document.mainform.txt_remindBDate_month.value="";
getfinalFromMainForm1();
setVisibility("Page5","none");
setVisibility("Page6","inline");
}
}
function getfinalFromMainForm1(){
document.getElementById("txtHint_final").innerHTML="";
var _7e=new Array();
_7e[0]=document.mainform.txt_email1.value;
_7e[1]=document.mainform.txt_pass.value;
_7e[2]=document.mainform.txt_chkval1.checked;
_7e[3]=document.mainform.txt_name1.value;
_7e[4]=document.mainform.txt_age1.value;
_7e[5]=document.mainform.txt_gen1.value;
_7e[6]=document.mainform.txt_occassion_date.value;
_7e[7]=document.mainform.txt_occassion_month.value;
_7e[8]=document.mainform.txt_occassion_year.value;
_7e[9]=document.mainform.txt_occassion.value;
_7e[10]=document.mainform.txt_relation_id.value;
_7e[11]=document.mainform.txt_g_userId.value;
_7e[12]=document.mainform.txt_intrest1.value;
_7e[13]=document.mainform.txt_intrest2.value;
_7e[14]=document.mainform.txt_intrest3.value;
_7e[15]=document.mainform.txt_remindBDate_date.value;
_7e[16]=document.mainform.txt_remindBDate_month.value;
showFinalData11(_7e);
}
function tryagain(){
document.frmpass.passwd.value="";
setVisibility("Page4","inline");
setVisibility("Page4_second","none");
}
function login(){
var _7f=new Array();
_7f[0]=document.frmpass.passwd.value;
_7f[1]=document.mainform.txt_email1.value;
_7f[2]=document.mainform.txt_relation_id.value;
showHint_pass(_7f);
setVisibility("Page4","none");
setVisibility("Page4_second","inline");
}
function getfinalFromMainForm(){
document.getElementById("txtHint_final").innerHTML="";
var _80=new Array();
_80[0]=document.mainform.txt_email1.value;
_80[1]=document.mainform.txt_pass.value;
_80[2]=document.mainform.txt_chkval1.checked;
_80[3]=document.mainform.txt_name1.value;
_80[4]=document.mainform.txt_age1.value;
_80[5]=document.mainform.txt_gen1.value;
_80[6]=document.mainform.txt_occassion_date.value;
_80[7]=document.mainform.txt_occassion_month.value;
_80[8]=document.mainform.txt_occassion_year.value;
_80[9]=document.mainform.txt_occassion.value;
_80[10]=document.mainform.txt_relation_id.value;
_80[11]=document.mainform.txt_g_userId.value;
_80[12]=document.mainform.txt_intrest1.value;
_80[13]=document.mainform.txt_intrest2.value;
_80[14]=document.mainform.txt_intrest3.value;
_80[15]=document.mainform.txt_remindBDate_date.value;
_80[16]=document.mainform.txt_remindBDate_month.value;
_80[17]=document.mainform.gift_id.value;
showFinalData1(_80);
setVisibility("Page6","none");
setVisibility("final","inline");
}
function setRemindBirthDay1(){
getfinalFromMainForm();
}
function continueon(){
getfinalFromMainForm();
setVisibility("Page6","none");
setVisibility("final","inline");
}
function setRemindBirthDay(){
cVal_fMonth=document.remindBDate.cfMonth.options[document.remindBDate.cfMonth.selectedIndex].value;
cVal_fDay=document.remindBDate.cfDay.options[document.remindBDate.cfDay.selectedIndex].value;
if((cVal_fMonth=="Month")||(cVal_fDay=="Day")||validdate(cVal_fDay,cVal_fMonth)){
alert("Please select a valid Day, Month from the list");
}else{
document.mainform.txt_remindBDate_date.value=cVal_fDay;
document.mainform.txt_remindBDate_month.value=cVal_fMonth;
if(document.mainform.txt_set_birthday.value==""){
getfinalFromMainForm();
}else{
getfinalFromMainForm1();
setVisibility("Page6","none");
setVisibility("final","inline");
}
}
}
function remindmelater4(){
document.getElementById("txtHint_final12").innerHTML="";
document.getElementById("span_final").innerHTML="";
document.remindBDate.txt_bname2.value=document.mainform.txt_name1.value+"'s Birthday";
setVisibility("Page6_inner","inline");
setVisibility("Page4","none");
setVisibility("Page6","inline");
}
function remindmelater41(){
document.getElementById("txtHint_final12").innerHTML="";
document.getElementById("span_final").innerHTML="";
document.remindBDate.txt_bname2.value=document.mainform.txt_name1.value+"'s Birthday";
occ=document.mainform.txt_occassion.value;
if(occ=1){
setVisibility("Page4_second","none");
setVisibility("Page4","none");
getfinalFromMainForm();
}else{
setVisibility("Page6_inner","inline");
setVisibility("Page4_second","none");
setVisibility("Page6","inline");
}
}
function setbirthday(_81){
var _82=" ";
var _83=" ";
var _84=" ";
counter=1;
for(k=1;k<=_81;k++){
strv="valv=(document.sample.cmb"+k+".checked);";
eval(strv);
if(valv==true){
strf="valf=(document.sample.cmb"+k+".value);";
eval(strf);
if(counter==1){
var _85=valf.split(",");
document.mainform.txt_intrest1.value=_85[0];
_82=_85[1];
_82=_82.replace(",","");
}
if(counter==2){
var _86=valf.split(",");
document.mainform.txt_intrest2.value=_86[0];
_83=_86[1];
_83=_83.replace(",","");
}
if(counter==3){
var _87=valf.split(",");
document.mainform.txt_intrest3.value=_87[0];
_84=_87[1];
_84=_84.replace(",","");
}
counter=counter+1;
}
}
var _88="None Selected";
if(_82!=" "){
_88=_82;
}
if(_83!=" "){
_88=_88+","+_83;
}
if(_84!=" "){
_88=_88+","+_84;
}
reminfor=document.mainform.txt_name1.value;
document.getElementById("txtHint_final12").innerHTML=reminfor+"'s interests: "+_88+".";
document.getElementById("span_final").innerHTML=reminfor+"'s interests "+_88+".";
if(document.remindBDate.txt_bname1){
document.remindBDate.txt_bname1.value=document.mainform.txt_name1.value;
}
document.remindBDate.txt_bname2.value=document.mainform.txt_name1.value+"'s Birthday";
isshowval=document.mainform.isshow.value;
if(isshowval==""){
isshowval="0";
}
if(isshowval=="0"){
setVisibility("Page4_second","none");
setVisibility("Page4","none");
setVisibility("Page6","inline");
}else{
setVisibility("Page4_second","none");
setVisibility("Page4","none");
getfinalFromMainForm();
}
}
function setbirthday1(_89){
var _8a=" ";
var _8b=" ";
var _8c=" ";
counter=1;
for(k=1;k<=_89;k++){
strv="valv=(document.sample1.cmb"+k+".checked);";
eval(strv);
if(valv==true){
strf="valf=(document.sample1.cmb"+k+".value);";
eval(strf);
if(counter==1){
var _8d=valf.split(",");
document.mainform.txt_intrest1.value=_8d[0];
_8a=_8d[1];
_8a=_8a.replace(",","");
}
if(counter==2){
var _8e=valf.split(",");
document.mainform.txt_intrest2.value=_8e[0];
_8b=_8e[1];
_8b=_8b.replace(",","");
}
if(counter==3){
var _8f=valf.split(",");
document.mainform.txt_intrest3.value=_8f[0];
_8c=_8f[1];
_8c=_8c.replace(",","");
}
counter=counter+1;
}
}
var _90="<b>None Selected</b>";
if(_8a!=" "){
_90=_8a;
}
if(_8b!=" "){
_90=_90+","+_8b;
}
if(_8c!=" "){
_90=_90+","+_8c;
}
reminfor=document.mainform.txt_name1.value;
document.getElementById("txtHint_final12").innerHTML="<b>The reminder for "+reminfor+" has been saved.</b>";
document.getElementById("span_final").innerHTML="<b>The reminder for "+reminfor+" has been saved.</b>";
if(document.remindBDate.txt_bname1){
document.remindBDate.txt_bname1.value=document.mainform.txt_name1.value+" ";
}
document.remindBDate.txt_bname2.value=document.mainform.txt_name1.value+"'s Birthday";
isshowval=document.mainform.isshow.value;
occ=document.mainform.txt_occassion.value;
if(isshowval==""){
isshowval="0";
}
if(isshowval=="0"&&occ!=1){
setVisibility("Page4_second","none");
setVisibility("Page4","none");
setVisibility("Page6","inline");
}else{
setVisibility("Page4_second","none");
setVisibility("Page4","none");
getfinalFromMainForm();
}
}
function show(){
document.mainform.txt_set_birthday.value="";
document.getElementById("txtHint_page122").innerHTML="";
showHint_page2("page2");
setVisibility("Page2","inline");
setVisibility("Page1","none");
setVisibility("Page5","none");
document.getElementById("txtHint").innerHTML="";
showHint(document.myform.x_val1.value,"-1");
}
function convertmonth(_91){
if(_91==1){
cmonth="January";
}
if(_91==2){
cmonth="February";
}
if(_91==3){
cmonth="March";
}
if(_91==4){
cmonth="April";
}
if(_91==5){
cmonth="May";
}
if(_91==6){
cmonth="June";
}
if(_91==7){
cmonth="July";
}
if(_91==8){
cmonth="August";
}
if(_91==9){
cmonth="September";
}
if(_91==10){
cmonth="October";
}
if(_91==11){
cmonth="November";
}
if(_91==12){
cmonth="December";
}
return cmonth;
}
function setPage(){
cVal_Month=document.occassionDate.cMonth.options[document.occassionDate.cMonth.selectedIndex].value;
cVal_Day=document.occassionDate.cDay.options[document.occassionDate.cDay.selectedIndex].value;
if((cVal_Month=="Month")||(cVal_Day=="Day")||validdate(cVal_Day,cVal_Month)){
alert("Please select a valid Day or Month from the list");
}else{
document.mainform.txt_occassion_date.value=cVal_Day;
document.mainform.txt_occassion_month.value=cVal_Month;
convertmonth(cVal_Month);
cVal_Monthc=cmonth;
elem=document.getElementById("txt_display");
elem.innerHTML="<b>"+display_name+"</b>"+" "+cVal_Day+" "+cVal_Monthc;
setVisibility("Page1","none");
elem=document.getElementById("txt_display1");
elem.innerHTML="<b>"+display_name+"</b>"+" "+cVal_Day+" "+cVal_Monthc;
document.getElementById("txtHint2").innerHTML="";
showHint_1(document.mainform.txt_occassion.value,2);
setVisibility("Page5","inline");
}
}
function setPage1(){
cVal_Month=document.occassionDate1.cMonth1.options[document.occassionDate1.cMonth1.selectedIndex].value;
cVal_Day=document.occassionDate1.cDay1.options[document.occassionDate1.cDay1.selectedIndex].value;
cVal_year=document.occassionDate1.cYear1.options[document.occassionDate1.cYear1.selectedIndex].value;
if((cVal_Month=="Month")||(cVal_Day=="Day")||(cVal_year=="Year")||validdate1(cVal_Day,cVal_Month,cVal_year)){
alert("Please select a valid Day Month Year from the list");
}else{
document.mainform.txt_occassion_date.value=cVal_Day;
document.mainform.txt_occassion_month.value=cVal_Month;
document.mainform.txt_occassion_year.value=cVal_year;
convertmonth(cVal_Month);
cVal_Month=cmonth;
elem=document.getElementById("txt_display");
elem.innerHTML="<b>"+display_name+"</b>"+" "+cVal_Day+", "+cVal_Month+" "+cVal_year;
setVisibility("Page1","none");
elem=document.getElementById("txt_display1");
elem.innerHTML="<b>"+display_name+"</b>"+" "+cVal_Day+", "+cVal_Month+" "+cVal_year;
document.getElementById("txtHint2").innerHTML="";
showHint_1(document.mainform.txt_occassion.value,2);
setVisibility("Page5","inline");
}
}
function Left(str,n){
if(n<=0){
return "";
}else{
if(n>String(str).length){
return str;
}else{
return String(str).substring(0,n);
}
}
}
function selectOccasion(id,_95,_96,_97,_98,_99,_9a,_9b){
showHint_page1(id,_9a);
setVisibility("Page1","inline");
document.mainform.txt_occassion.value=id;
document.myform.x_val1.value=id;
display_name=_95;
var _9c=Left(display_name,16);
display_name=_9c;
if(_9a==0){
document.mainform.isshow.value=_9a;
setVisibility("Page6_inner","inline");
}
if(_96==0){
document.getElementById("txtHint").innerHTML="";
document.mainform.txt_occassion_date.value=_97;
document.mainform.txt_occassion_month.value=_98;
document.mainform.txt_occassion_year.value=_99;
Date1=_97;
convertmonth(_98);
monthc=cmonth;
elem=document.getElementById("txt_display");
elem.innerHTML="<b>"+display_name+"</b>"+Date1+" "+monthc+", "+_99;
showHint(document.myform.x_val1.value,"-1");
if(_9b==""){
setVisibility("Page1","none");
setVisibility("Page1_inner","none");
setVisibility("Page1_inner2","none");
document.mainform.txt_occassion_date.value=_97;
document.mainform.txt_occassion_month.value=_98;
document.mainform.txt_occassion_year.value=_99;
Date1=_97;
convertmonth(_98);
monthc=cmonth;
setVisibility("Page2","inline");
}else{
setVisibility("Page1","none");
setVisibility("Page1_inner","none");
setVisibility("Page1_inner2","none");
elem=document.getElementById("txt_display1");
elem.innerHTML="<b>"+display_name+"</b>"+Date1+" "+monthc+", "+_99;
document.getElementById("txtHint2").innerHTML="";
showHint_1(document.mainform.txt_occassion.value,2);
setVisibility("Page5","inline");
}
}
if(_96==1){
setVisibility("Page1_inner2","none");
setVisibility("Page1_inner","inline");
setVisibility("Page2","none");
}
if(_96==2){
setVisibility("Page1_inner","none");
setVisibility("Page1_inner2","inline");
setVisibility("Page2","none");
}
}
function setNext(){
cVal_Month=document.occassionDate.cMonth.options[document.occassionDate.cMonth.selectedIndex].value;
cVal_Day=document.occassionDate.cDay.options[document.occassionDate.cDay.selectedIndex].value;
if((cVal_Month=="Month")||(cVal_Day=="Day")||validdate(cVal_Day,cVal_Month)){
alert("Please select a valid Day or Month from the list ");
}else{
document.mainform.txt_occassion_date.value=cVal_Day;
document.mainform.txt_occassion_month.value=cVal_Month;
setVisibility("Page2","inline");
setVisibility("Page1","none");
convertmonth(cVal_Month);
cVal_Monthc=cmonth;
elem=document.getElementById("txt_display");
elem.innerHTML="<b>"+display_name+"</b>"+cVal_Day+" "+cVal_Monthc;
}
document.getElementById("txtHint").innerHTML="";
showHint(document.myform.x_val1.value,"-1");
}
function setNext1(){
cVal_Month=document.occassionDate1.cMonth1.options[document.occassionDate1.cMonth1.selectedIndex].value;
cVal_Day=document.occassionDate1.cDay1.options[document.occassionDate1.cDay1.selectedIndex].value;
cVal_year=document.occassionDate1.cYear1.options[document.occassionDate1.cYear1.selectedIndex].value;
if((cVal_Month=="Month")||(cVal_Day=="Day")||(cVal_year=="Year")||validdate1(cVal_Day,cVal_Month,cVal_year)){
alert("Please select a valid Day Month Year from the list ");
}else{
document.mainform.txt_occassion_date.value=cVal_Day;
document.mainform.txt_occassion_month.value=cVal_Month;
document.mainform.txt_occassion_year.value=cVal_year;
convertmonth(cVal_Month);
cVal_Monthc=cmonth;
display_trimname=rightTrim(display_name);
elem=document.getElementById("txt_display");
elem.innerHTML="<b>"+display_trimname+"</b>"+cVal_Day+" "+cVal_Monthc+","+cVal_year;
document.getElementById("txtHint_interest").innerHTML="";
showHint_page2("page2");
setVisibility("Page2","inline");
setVisibility("Page1","none");
}
document.getElementById("txtHint").innerHTML="";
showHint(document.myform.x_val1.value,"-1");
}
function selectcheck1(_9d,_9e,_9f){
j=0;
k=0;
count=0;
maxval=3;
i=_9e;
for(j=1;j<=_9f;j++){
str2="(document.sample1.cmb"+j+".disabled)=false;";
eval(str2);
str1="val=(document.sample1.cmb"+j+".checked);";
eval(str1);
if(val==true){
count=count+1;
}
}
if(count==3){
for(k=1;k<=_9f;k++){
str="val1=(document.sample1.cmb"+k+".checked);";
eval(str);
if(val1==false){
str1="(document.sample1.cmb"+k+".disabled)=true;";
eval(str1);
}
}
}
}
function selectcheck(_a0,_a1,_a2){
j=0;
k=0;
count=0;
maxval=3;
i=_a1;
for(j=1;j<=_a2;j++){
str2="(document.sample.cmb"+j+".disabled)=false;";
eval(str2);
str1="val=(document.sample.cmb"+j+".checked);";
eval(str1);
if(val==true){
count=count+1;
}
}
if(count==3){
for(k=1;k<=_a2;k++){
str="val1=(document.sample.cmb"+k+".checked);";
eval(str);
if(val1==false){
str1="(document.sample.cmb"+k+".disabled)=true;";
eval(str1);
}
}
}
}
function selectRelations(id,_a4){
document.getElementById("txtHint").innerHTML="";
showHint(document.myform.x_val1.value,id);
selectRelation(id,_a4);
}
function selectRelations_anon(id,_a6,_a7,occ){
document.getElementById("txtHint").innerHTML="";
showHint_anon(occ,_a7,id);
selectRelation(id,_a6);
}
function selectRelation(id,_aa){
document.mainform.txt_relation_id.value=id;
}
function password(){
var _ab="abcdefghijklmnopqrstuvwxyz123456789";
var _ac="";
for(i=0;i<10;i++){
_ac+=_ab.charAt(Math.floor(Math.random()*_ab.length));
document.mainform.txt_pass.value=_ac;
}
}
function setReminder1(){
cVal_Age1=document.recipient1.age.options[document.recipient1.age.selectedIndex].value;
cVal_Gender1=document.recipient1.gender.options[document.recipient1.gender.selectedIndex].value;
cVal_name1=document.recipient1.name.value;
cVal_email1=document.recipient1.email.value;
cVal_chkval1=document.recipient1.chkval.checked;
if(cVal_email1!=null){
password();
}
if((cVal_Age1=="Select age")||(cVal_Gender1=="Choose one")||(cVal_name1=="")||(cVal_email1=="")||(EW_checkMyForm(document.recipient1))==false){
alert("Please enter each of the requested details");
}else{
document.mainform.txt_age1.value=cVal_Age1;
document.mainform.txt_gen1.value=cVal_Gender1;
document.mainform.txt_name1.value=cVal_name1;
document.mainform.txt_email1.value=cVal_email1;
document.mainform.txt_chkval1.checked=cVal_chkval1;
document.reciepentfrm1.txt_recep_name.value=cVal_name1.replace(/^\s+|\s+$/g,"");
document.reciepentfrm2.txt_recep_name.value=cVal_name1.replace(/^\s+|\s+$/g,"");
getDataFromMainForm();
setVisibility("Page2","none");
}
}
function setReminder2(){
cVal_Age1=document.recipient2.age.options[document.recipient2.age.selectedIndex].value;
cVal_Gender1="Male";
cVal_name1=document.recipient2.name.value;
cVal_email1=document.recipient2.email.value;
cVal_chkval1=document.recipient2.chkval.checked;
if(cVal_email1!=null){
password();
}
if((cVal_Age1=="Select age")||(cVal_name1=="")||(cVal_email1=="")||(EW_checkMyForm(document.recipient2))==false){
alert("Please complete each question.");
}else{
document.mainform.txt_age1.value=cVal_Age1;
document.mainform.txt_gen1.value=cVal_Gender1;
document.mainform.txt_name1.value=cVal_name1;
document.mainform.txt_email1.value=cVal_email1;
document.mainform.txt_chkval1.checked=cVal_chkval1;
document.reciepentfrm1.txt_recep_name.value=cVal_name1.replace(/^\s+|\s+$/g,"");
document.reciepentfrm2.txt_recep_name.value=cVal_name1.replace(/^\s+|\s+$/g,"");
getDataFromMainForm();
setVisibility("Page2","none");
}
}
function setReminder3(){
cVal_Age1=document.recipient3.age.options[document.recipient3.age.selectedIndex].value;
cVal_Gender1="Female";
cVal_name1=document.recipient3.name.value;
cVal_email1=document.recipient3.email.value;
cVal_chkval1=document.recipient3.chkval.checked;
if(cVal_email1!=null){
password();
}
if((cVal_Age1=="Select age")||(cVal_name1=="")||(cVal_email1=="")||(EW_checkMyForm(document.recipient3))==false){
alert("Please enter each of the requested details");
}else{
document.mainform.txt_age1.value=cVal_Age1;
document.mainform.txt_gen1.value=cVal_Gender1;
document.mainform.txt_name1.value=cVal_name1;
document.mainform.txt_email1.value=cVal_email1;
document.mainform.txt_chkval1.checked=cVal_chkval1;
document.reciepentfrm1.txt_recep_name.value=cVal_name1.replace(/^\s+|\s+$/g,"");
document.reciepentfrm2.txt_recep_name.value=cVal_name1.replace(/^\s+|\s+$/g,"");
getDataFromMainForm();
setVisibility("Page2","none");
}
}
function setReminder4(){
cVal_Age1=document.recipient4.age.options[document.recipient4.age.selectedIndex].value;
cVal_Gender1="Male";
cVal_name1=document.recipient4.name.value;
cVal_email1=document.recipient4.email.value;
cVal_chkval1=document.recipient4.chkval.checked;
if(cVal_email1!=null){
password();
}
if((cVal_Age1=="Select age")||(cVal_name1=="")||(cVal_email1=="")||(EW_checkMyForm(document.recipient4))==false){
alert("Please enter each of the requested details");
}else{
if(EW_checkMyForm(document.recipient4)){
document.mainform.txt_age1.value=cVal_Age1;
document.mainform.txt_gen1.value=cVal_Gender1;
document.mainform.txt_name1.value=cVal_name1;
document.mainform.txt_email1.value=cVal_email1;
document.mainform.txt_chkval1.checked=cVal_chkval1;
document.reciepentfrm1.txt_recep_name.value=cVal_name1.replace(/^\s+|\s+$/g,"");
document.reciepentfrm2.txt_recep_name.value=cVal_name1.replace(/^\s+|\s+$/g,"");
getDataFromMainForm();
}
setVisibility("Page2","none");
}
}
function setReminder5(){
cVal_Age1=document.recipient5.age.options[document.recipient5.age.selectedIndex].value;
cVal_Gender1="Female";
cVal_name1=document.recipient5.name.value;
cVal_email1=document.recipient5.email.value;
cVal_chkval1=document.recipient5.chkval.checked;
if(cVal_email1!=null){
password();
}
if((cVal_Age1=="Select age")||(cVal_name1=="")||(cVal_email1=="")||(EW_checkMyForm(document.recipient5))==false){
alert("Please enter each of the requested details");
}else{
if(EW_checkMyForm(document.recipient5)){
document.mainform.txt_age1.value=cVal_Age1;
document.mainform.txt_gen1.value=cVal_Gender1;
document.mainform.txt_name1.value=cVal_name1;
document.mainform.txt_email1.value=cVal_email1;
document.mainform.txt_chkval1.checked=cVal_chkval1;
document.reciepentfrm1.txt_recep_name.value=cVal_name1.replace(/^\s+|\s+$/g,"");
document.reciepentfrm2.txt_recep_name.value=cVal_name1.replace(/^\s+|\s+$/g,"");
getDataFromMainForm();
}
setVisibility("Page2","none");
}
}
function setReminder6(){
cVal_Age1=document.recipient6.age.options[document.recipient6.age.selectedIndex].value;
cVal_Gender1="Male";
cVal_name1=document.recipient6.name.value;
cVal_email1=document.recipient6.email.value;
cVal_chkval1=document.recipient6.chkval.checked;
if(cVal_email1!=null){
password();
}
if((cVal_Age1=="Select age")||(cVal_name1=="")||(cVal_email1=="")||(EW_checkMyForm(document.recipient6))==false){
alert("Please enter each of the requested details");
}else{
document.mainform.txt_age1.value=cVal_Age1;
document.mainform.txt_gen1.value=cVal_Gender1;
document.mainform.txt_name1.value=cVal_name1;
document.mainform.txt_email1.value=cVal_email1;
document.mainform.txt_chkval1.checked=cVal_chkval1;
document.reciepentfrm1.txt_recep_name.value=cVal_name1.replace(/^\s+|\s+$/g,"");
document.reciepentfrm2.txt_recep_name.value=cVal_name1.replace(/^\s+|\s+$/g,"");
getDataFromMainForm();
setVisibility("Page2","none");
}
}
function setReminder7(){
cVal_Age1=document.recipient7.age.options[document.recipient7.age.selectedIndex].value;
cVal_Gender1="Female";
cVal_name1=document.recipient7.name.value;
cVal_email1=document.recipient7.email.value;
cVal_chkval1=document.recipient7.chkval.checked;
if(cVal_email1!=null){
password();
}
if((cVal_Age1=="Select age")||(cVal_name1=="")||(cVal_email1=="")||(EW_checkMyForm(document.recipient7))==false){
alert("Please enter each of the requested details");
}else{
document.mainform.txt_age1.value=cVal_Age1;
document.mainform.txt_gen1.value=cVal_Gender1;
document.mainform.txt_name1.value=cVal_name1;
document.mainform.txt_email1.value=cVal_email1;
document.mainform.txt_chkval1.checked=cVal_chkval1;
document.reciepentfrm1.txt_recep_name.value=cVal_name1.replace(/^\s+|\s+$/g,"");
document.reciepentfrm2.txt_recep_name.value=cVal_name1.replace(/^\s+|\s+$/g,"");
getDataFromMainForm();
setVisibility("Page2","none");
}
}
function setReminder8(){
cVal_Age1=document.recipient8.age.options[document.recipient8.age.selectedIndex].value;
cVal_Gender1="Male";
cVal_name1=document.recipient8.name.value;
cVal_email1=document.recipient8.email.value;
cVal_chkval1=document.recipient8.chkval.checked;
if(cVal_email1!=null){
password();
}
if((cVal_Age1=="Select age")||(cVal_name1=="")||(cVal_email1=="")||(EW_checkMyForm(document.recipient8))==false){
alert("Please enter each of the requested details");
}else{
document.mainform.txt_age1.value=cVal_Age1;
document.mainform.txt_gen1.value=cVal_Gender1;
document.mainform.txt_name1.value=cVal_name1;
document.mainform.txt_email1.value=cVal_email1;
document.mainform.txt_chkval1.checked=cVal_chkval1;
document.reciepentfrm1.txt_recep_name.value=cVal_name1.replace(/^\s+|\s+$/g,"");
document.reciepentfrm2.txt_recep_name.value=cVal_name1.replace(/^\s+|\s+$/g,"");
getDataFromMainForm();
setVisibility("Page2","none");
}
}
function setReminder9(){
cVal_Age1=document.recipient9.age.options[document.recipient9.age.selectedIndex].value;
cVal_Gender1="Female";
cVal_name1=document.recipient9.name.value;
cVal_email1=document.recipient9.email.value;
cVal_chkval1=document.recipient9.chkval.checked;
if(cVal_email1!=null){
password();
}
if((cVal_Age1=="Select age")||(cVal_name1=="")||(cVal_email1=="")||(EW_checkMyForm(document.recipient9))==false){
alert("Please enter each of the requested details");
}else{
document.mainform.txt_age1.value=cVal_Age1;
document.mainform.txt_gen1.value=cVal_Gender1;
document.mainform.txt_name1.value=cVal_name1;
document.mainform.txt_email1.value=cVal_email1;
document.mainform.txt_chkval1.checked=cVal_chkval1;
document.reciepentfrm1.txt_recep_name.value=cVal_name1.replace(/^\s+|\s+$/g,"");
document.reciepentfrm2.txt_recep_name.value=cVal_name1.replace(/^\s+|\s+$/g,"");
getDataFromMainForm();
setVisibility("Page2","none");
}
}
function setReminder10(){
cVal_Age1=document.recipient10.age.options[document.recipient10.age.selectedIndex].value;
cVal_Gender1="Male";
cVal_name1=document.recipient10.name.value;
cVal_email1=document.recipient10.email.value;
cVal_chkval1=document.recipient10.chkval.checked;
if(cVal_email1!=null){
password();
}
if((cVal_Age1=="Select age")||(cVal_name1=="")||(cVal_email1=="")||(EW_checkMyForm(document.recipient10))==false){
alert("Please enter each of the requested details");
}else{
document.mainform.txt_age1.value=cVal_Age1;
document.mainform.txt_gen1.value=cVal_Gender1;
document.mainform.txt_name1.value=cVal_name1;
document.mainform.txt_email1.value=cVal_email1;
document.mainform.txt_chkval1.checked=cVal_chkval1;
document.reciepentfrm1.txt_recep_name.value=cVal_name1.replace(/^\s+|\s+$/g,"");
document.reciepentfrm2.txt_recep_name.value=cVal_name1.replace(/^\s+|\s+$/g,"");
getDataFromMainForm();
setVisibility("Page2","none");
}
}
function setReminder11(){
cVal_Age1=document.recipient11.age.options[document.recipient11.age.selectedIndex].value;
cVal_Gender1="Female";
cVal_name1=document.recipient11.name.value;
cVal_email1=document.recipient11.email.value;
cVal_chkval1=document.recipient11.chkval.checked;
if(cVal_email1!=null){
password();
}
if((cVal_Age1=="Select age")||(cVal_name1=="")||(cVal_email1=="")||(EW_checkMyForm(document.recipient11))==false){
alert("Please enter each of the requested details");
}else{
document.mainform.txt_age1.value=cVal_Age1;
document.mainform.txt_gen1.value=cVal_Gender1;
document.mainform.txt_name1.value=cVal_name1;
document.mainform.txt_email1.value=cVal_email1;
document.mainform.txt_chkval1.checked=cVal_chkval1;
document.reciepentfrm1.txt_recep_name.value=cVal_name1.replace(/^\s+|\s+$/g,"");
document.reciepentfrm2.txt_recep_name.value=cVal_name1.replace(/^\s+|\s+$/g,"");
getDataFromMainForm();
setVisibility("Page2","none");
}
}
function setReminder12(){
cVal_Age1=document.recipient12.age.options[document.recipient12.age.selectedIndex].value;
cVal_Gender1="Female";
cVal_name1=document.recipient12.name12.value;
cVal_email1=document.recipient12.email.value;
cVal_chkval1=document.recipient12.chkval.checked;
if(cVal_email1!=null){
password();
}
if((cVal_Age1=="Select age")||(cVal_name1=="")||(cVal_email1=="")||(EW_checkMyForm(document.recipient12))==false){
alert("Please enter each of the requested details");
}else{
document.mainform.txt_age1.value=cVal_Age1;
document.mainform.txt_gen1.value=cVal_Gender1;
document.mainform.txt_name1.value=cVal_name1;
document.mainform.txt_email1.value=cVal_email1;
document.mainform.txt_chkval1.checked=cVal_chkval1;
document.reciepentfrm1.txt_recep_name.value=cVal_name1.replace(/^\s+|\s+$/g,"");
document.reciepentfrm2.txt_recep_name.value=cVal_name1.replace(/^\s+|\s+$/g,"");
getDataFromMainForm();
setVisibility("Page2","none");
}
}
function setReminder13(){
cVal_Age1=document.recipient13.age.options[document.recipient13.age.selectedIndex].value;
cVal_Gender1="Male";
cVal_name1=document.recipient13.name13.value;
cVal_email1=document.recipient13.email.value;
cVal_chkval1=document.recipient13.chkval.checked;
if(cVal_email1!=null){
password();
}
if((cVal_Age1=="Select age")||(cVal_name1=="")||(cVal_email1=="")||(EW_checkMyForm(document.recipient13))==false){
alert("Please enter each of the requested details");
}else{
document.mainform.txt_age1.value=cVal_Age1;
document.mainform.txt_gen1.value=cVal_Gender1;
document.mainform.txt_name1.value=cVal_name1;
document.mainform.txt_email1.value=cVal_email1;
document.mainform.txt_chkval1.checked=cVal_chkval1;
document.reciepentfrm1.txt_recep_name.value=cVal_name1.replace(/^\s+|\s+$/g,"");
document.reciepentfrm2.txt_recep_name.value=cVal_name1.replace(/^\s+|\s+$/g,"");
getDataFromMainForm();
setVisibility("Page2","none");
}
}
function setReminder14(){
cVal_Age1=document.recipient14.age.options[document.recipient14.age.selectedIndex].value;
cVal_Gender1=document.recipient14.gender.options[document.recipient14.gender.selectedIndex].value;
cVal_name1=document.recipient14.name.value;
cVal_email1=document.recipient14.email.value;
cVal_chkval1=document.recipient14.chkval.checked;
if(cVal_email1!=null){
password();
}
if((cVal_Age1=="Select age")||(cVal_name1=="")||(cVal_email1=="")||(EW_checkMyForm(document.recipient14))==false){
alert("Please enter each of the requested details");
}else{
document.mainform.txt_age1.value=cVal_Age1;
document.mainform.txt_gen1.value=cVal_Gender1;
document.mainform.txt_name1.value=cVal_name1;
document.mainform.txt_email1.value=cVal_email1;
document.mainform.txt_chkval1.checked=cVal_chkval1;
document.reciepentfrm1.txt_recep_name.value=cVal_name1.replace(/^\s+|\s+$/g,"");
document.reciepentfrm2.txt_recep_name.value=cVal_name1.replace(/^\s+|\s+$/g,"");
getDataFromMainForm();
setVisibility("Page2","none");
}
}
function setReminder15(){
cVal_Age1=document.recipient15.age.options[document.recipient15.age.selectedIndex].value;
cVal_Gender1=document.recipient15.gender.options[document.recipient15.gender.selectedIndex].value;
cVal_name1=document.recipient15.name.value;
cVal_email1=document.recipient15.email.value;
cVal_chkval1=document.recipient15.chkval.checked;
if(cVal_email1!=null){
password();
}
if((cVal_Age1=="Select age")||(cVal_Gender1=="Choose one")||(cVal_name1=="")||(cVal_email1=="")||(EW_checkMyForm(document.recipient15))==false){
alert("Please enter each of the requested details");
}else{
document.mainform.txt_age1.value=cVal_Age1;
document.mainform.txt_gen1.value=cVal_Gender1;
document.mainform.txt_name1.value=cVal_name1;
document.mainform.txt_email1.value=cVal_email1;
document.mainform.txt_chkval1.checked=cVal_chkval1;
document.reciepentfrm1.txt_recep_name.value=cVal_name1.replace(/^\s+|\s+$/g,"");
document.reciepentfrm2.txt_recep_name.value=cVal_name1.replace(/^\s+|\s+$/g,"");
getDataFromMainForm();
setVisibility("Page2","none");
}
}
function setReminder16(){
cVal_Age1=document.recipient16.age.options[document.recipient16.age.selectedIndex].value;
cVal_Gender1=document.recipient16.gender.options[document.recipient16.gender.selectedIndex].value;
cVal_name1=document.recipient16.name.value;
cVal_email1=document.recipient16.email.value;
cVal_chkval1=document.recipient16.chkval.checked;
if(cVal_email1!=null){
password();
}
if((cVal_Age1=="Select age")||(cVal_Gender1=="Choose one")||(cVal_name1=="")||(cVal_email1=="")||(EW_checkMyForm(document.recipient16))==false){
alert("Please enter each of the requested details");
}else{
document.mainform.txt_age1.value=cVal_Age1;
document.mainform.txt_gen1.value=cVal_Gender1;
document.mainform.txt_name1.value=cVal_name1;
document.mainform.txt_email1.value=cVal_email1;
document.mainform.txt_chkval1.checked=cVal_chkval1;
document.reciepentfrm1.txt_recep_name.value=cVal_name1.replace(/^\s+|\s+$/g,"");
document.reciepentfrm2.txt_recep_name.value=cVal_name1.replace(/^\s+|\s+$/g,"");
getDataFromMainForm();
setVisibility("Page2","none");
}
}
function setReminder17(){
cVal_Age1=document.recipient17.age.options[document.recipient17.age.selectedIndex].value;
cVal_Gender1=document.recipient17.gender.options[document.recipient17.gender.selectedIndex].value;
cVal_name1=document.recipient17.name.value;
cVal_email1=document.recipient17.email.value;
cVal_chkval1=document.recipient17.chkval.checked;
if(cVal_email1!=null){
password();
}
if((cVal_Age1=="Select age")||(cVal_Gender1=="Choose one")||(cVal_name1=="")||(cVal_email1=="")||(EW_checkMyForm(document.recipient17))==false){
alert("Please enter each of the requested details");
}else{
document.mainform.txt_age1.value=cVal_Age1;
document.mainform.txt_gen1.value=cVal_Gender1;
document.mainform.txt_name1.value=cVal_name1;
document.mainform.txt_email1.value=cVal_email1;
document.mainform.txt_chkval1.checked=cVal_chkval1;
document.reciepentfrm1.txt_recep_name.value=cVal_name1.replace(/^\s+|\s+$/g,"");
document.reciepentfrm2.txt_recep_name.value=cVal_name1.replace(/^\s+|\s+$/g,"");
getDataFromMainForm();
setVisibility("Page2","none");
}
}
function setReminder_anon(rid){
cVal_Age1="Unknown";
cVal_Gender1="Unknown";
cVal_name1=document.recipient1.name.value;
cVal_email1=document.recipient1.email.value;
cVal_chkval1=document.recipient1.chkval.checked;
if(cVal_email1!=null){
password();
}
if((cVal_name1=="")||(cVal_email1=="")||(EW_checkMyForm(document.recipient1))==false){
alert("Please enter each of the requested details");
}else{
document.mainform.txt_age1.value="Unknown";
document.mainform.txt_gen1.value="Unknown";
document.mainform.txt_name1.value=cVal_name1;
document.mainform.txt_email1.value=cVal_email1;
document.mainform.txt_chkval1.checked=cVal_chkval1;
document.reciepentfrm1.txt_recep_name.value=cVal_name1.replace(/^\s+|\s+$/g,"");
document.reciepentfrm2.txt_recep_name.value=cVal_name1.replace(/^\s+|\s+$/g,"");
getDataFromMainForm();
setVisibility("Page5","none");
}
}
function getDataFromMainForm(){
var _ae=new Array();
_ae[0]=document.mainform.txt_relation_id.value;
_ae[1]=document.mainform.txt_pass.value;
_ae[2]=document.mainform.txt_email1.value;
document.getElementById("txtHint_interest").innerHTML="";
showHint_interest(_ae);
setVisibility("Page4","inline");
}
function EW_checkMyForm(_af){
if(_af.email&&!EW_hasValue(_af.email,"TEXT")){
return false;
}
if(_af.email&&!EW_checkemail(_af.email.value)){
return false;
}
return true;
}
function MM_callJS(_b0){
return eval(_b0);
}


