function validate() { frm=document.frmlogin; if(frm.username.value=="") { alert("Please enter Login Name"); frm.username.focus(); return false; } else if(frm.username.value!="") { var re = /^[a-zA-Z0-9\_.]+w*@[a-z0-9_]+\.+[a-z0-9_.]{2,4}|^[a-zA-Z0-9]+w*@[a-z]+\.+[a-z]{2,4}\.[a-z]{2}$/i; if(!re.test(frm.username.value)) { alert("Please enter valid Email Id"); frm.username.focus(); return false; } } else { var login = frm.username.value; olduser=islogname(login); if(olduser<1) { alert("Please enter correct Login Name"); frm.username.value=""; frm.username.focus(); return false; } } frm.action="ack_forgot_pass.php?type=forgot_pwd"; //frm.submit(); } function start() { objXmlHTTP = new ActiveXObject("Microsoft.XMLHTTP") ; objXmlDOM = new ActiveXObject("Microsoft.XMLDOM") ; } function islogname(val) { var url_category ="is_user.php?mod=user_check&login="+val; start(); next_data = ""; objXmlHTTP.open("POST",url_category,false); objXmlHTTP.send(""); next_data = objXmlHTTP.ResponseText; return next_data; //array1 = next_data; //return (array1); } function frmback() { frm=document.frmlogin; frm.action="shop.php"; frm.submit(); } '; $disp_content="

Forgot password
Login Name (Email Id)*
* Indicates Mandatory Field


"; /* $onload="document.frmlogin.username.focus();"; $login_table=""; */ //To read the template and to replace the contents //================================================ /* $fp1=fopen("../templates/user_template.html","r"); $fcont=fread($fp1,filesize("../templates/user_template.html")); fclose($fp1); */ if($sess_catid == "") { $sess_catid = 1; } if($sess_catid==1) { $fp=fopen("../templates/madetomeasure_index.html","r"); $file_cont=fread($fp,filesize("../templates/madetomeasure_index.html")); fclose($fp); } else if($sess_catid==2) { $fp=fopen("../templates/sanitary_index.html","r"); $file_cont=fread($fp,filesize("../templates/sanitary_index.html")); fclose($fp); } else if($sess_catid==3) { $fp=fopen("../templates/decimetric_index.html","r"); $file_cont=fread($fp,filesize("../templates/decimetric_index.html")); fclose($fp); } $file_cont=ereg_replace("",$script_lang,$file_cont); //$fcont=ereg_replace("",$login_table,$fcont); //$fcont=ereg_replace("",$onload,$fcont); $file_cont=ereg_replace("",$disp_content,$file_cont); echo $file_cont; ?>