function validate() { var re1=/^[a-zA-Z0-9\_.]+w*@[a-z0-9]+\.[a-z_.]{2,4}|^[a-zA-Z0-9]+w*@[a-z]+\.+[a-z]{2,4}\.[a-z]{2}$/i; var re2=/\.$/i; frm=document.form1; if(frm.personname.value=="") { alert("Please enter Name"); frm.personname.focus(); return false; } if(frm.email.value=="") { alert("Please enter Email"); frm.email.focus(); return false; } if(!frm.email.value.match(re1)|| frm.email.value.match(re2)) { alert("Enter valid E Id"); frm.email.focus(); return false; } if(frm.resume.value=="") { alert("Please select Upload Resume"); frm.resume.focus(); return false; } if(frm.resume.value!="") { var mre=/\s+\.doc|\s+\.DOC|\s+\.pdf|\s+\.PDF/g; if(frm.resume.value==".pdf" || frm.resume.value==".PDF" ||frm.resume.value==".doc"||frm.resume.value==".DOC" ||frm.resume.value.match(mre)) { alert("Please upload DOC or PDF files only."); frm.resume.focus(); return false; } if(frm.resume.value!="" && frm.resume.value.indexOf(".doc")==-1 && frm.resume.value.indexOf(".pdf")==-1) { alert("Please upload DOC or PDF files only."); frm.resume.focus(); return false; } } frm.hiddoc.value=frm.resume.value; frm.method="post"; frm.action="send_resume.php"; } function txtarea(e) { var keycode; if(window.event) keycode=window.event.keyCode; else if(e) keycode=e.which; else return true; if((keycode == 32 &&(e.value).length == 0)||(e.value).length>=250) { e.value=(e.value).substr(0,250); return false; } else { return true; } } function gopage() { frm=document.form1; frm.action="resume_post.php"; frm.submit(); } '; $content="
Enquiry / Upload Resume
Subject Job Application JobID: $jcode
Name *
Email *
Upload Resume *
Message
* Marked fields are necessary
                 
"; $immeopen="Micromax has immediate openings in the following technologies:"; // To read the template and write the contents //============================================ $temp=fopen("../templates/user_template.html","r"); $template_content=fread($temp,filesize("../templates/user_template.html")); fclose($temp); $template_content = ereg_replace('',$scriplang,$template_content); $template_content = ereg_replace('',$content,$template_content); echo $template_content; ?>