function sho(b){var a=document.getElementById(b);if(a.style.visibility=="visible"){a.style.visibility="hidden"}else{a.style.visibility="visible";$("input#login\\:loginMail").select()}}function hid(b){var a=document.getElementById(b);a.style.visibility="hidden"}function checkMailId(o){var m=new Array(".com",".net",".org",".biz",".coop",".info",".museum",".name",".pro",".edu",".gov",".int",".mil",".ac",".ad",".ae",".af",".ag",".ai",".al",".am",".an",".ao",".aq",".ar",".as",".at",".au",".aw",".az",".ba",".bb",".bd",".be",".bf",".bg",".bh",".bi",".bj",".bm",".bn",".bo",".br",".bs",".bt",".bv",".bw",".by",".bz",".ca",".cc",".cd",".cf",".cg",".ch",".ci",".ck",".cl",".cm",".cn",".co",".cr",".cu",".cv",".cx",".cy",".cz",".de",".dj",".dk",".dm",".do",".dz",".ec",".ee",".eg",".eh",".er",".es",".et",".fi",".fj",".fk",".fm",".fo",".fr",".ga",".gd",".ge",".gf",".gg",".gh",".gi",".gl",".gm",".gn",".gp",".gq",".gr",".gs",".gt",".gu",".gv",".gy",".hk",".hm",".hn",".hr",".ht",".hu",".id",".ie",".il",".im",".in",".io",".iq",".ir",".is",".it",".je",".jm",".jo",".jp",".ke",".kg",".kh",".ki",".km",".kn",".kp",".kr",".kw",".ky",".kz",".la",".lb",".lc",".li",".lk",".lr",".ls",".lt",".lu",".lv",".ly",".ma",".mc",".md",".mg",".mh",".mk",".ml",".mm",".mn",".mo",".mp",".mq",".mr",".ms",".mt",".mu",".mv",".mw",".mx",".my",".mz",".na",".nc",".ne",".nf",".ng",".ni",".nl",".no",".np",".nr",".nu",".nz",".om",".pa",".pe",".pf",".pg",".ph",".pk",".pl",".pm",".pn",".pr",".ps",".pt",".pw",".py",".qa",".re",".ro",".rw",".ru",".sa",".sb",".sc",".sd",".se",".sg",".sh",".si",".sj",".sk",".sl",".sm",".sn",".so",".sr",".st",".sv",".sy",".sz",".tc",".td",".tf",".tg",".th",".tj",".tk",".tm",".tn",".to",".tp",".tr",".tt",".tv",".tw",".tz",".ua",".ug",".uk",".um",".us",".uy",".uz",".va",".vc",".ve",".vg",".vi",".vn",".vu",".ws",".wf",".ye",".yt",".yu",".za",".zm",".zw");var n=o;var a=n.split("\n");var f=true;for(var k=0;k<a.length;k++){var h=a[k];var b=h.lastIndexOf(".");var d=h.substring(b,h.length);var e=h.indexOf("@");var g=b-e;var c=h.indexOf(" ");if(g>=4&&e>0&&c==-1){for(var l=0;l<m.length;l++){if(d==m[l]){f=true;break}else{f=false}}if(f==false){alert("Your mail ID "+h+" is not corrrrect");return false}}else{alert("Your mail ID "+h+" is not correct");return false}}return true}function enquiryNriValidation(){if(document.getElementById("enquiryform:uname").value==""){alert("Enter your Name please");document.getElementById("enquiryform:uname").focus();return false}if(document.getElementById("enquiryform:enqdesc").value==""){alert("Please Enter your Enquiry");document.getElementById("enquiryform:enqdesc").focus();return false}else{document.enquiryform.submit}}function searchValidation(){if((parseInt(document.getElementById("srch:budget").value))>(parseInt(document.getElementById("srch:to").value))){alert("Minimum Price is more then Maximum Price");document.getElementById("srch:budget").focus();return false}else{document.srch.submit}}function loginValidation(){if(document.getElementById("login:loginMail").value==""){alert("Enter your mail id please");document.getElementById("login:loginMail").focus();return false}if(!checkMailId(document.getElementById("login:loginMail").value)){document.getElementById("login:loginMail").focus();return false}if(document.getElementById("login:loginPwd").value==""){alert("Enter your Password please");document.getElementById("login:loginPwd").focus();return false}else{document.login.submit}}function changepwdValidation(){if(document.getElementById("changepwd:useId").value==""){alert("Enter your mail id please");document.getElementById("changepwd:useId").focus();return false}if(!checkMailId(document.getElementById("changepwd:useId").value)){document.getElementById("changepwd:useId").focus();return false}if(document.getElementById("changepwd:currentPwd").value==""){alert("Enter your current Password please");document.getElementById("changepwd:currentPwd").focus();return false}if(document.getElementById("changepwd:newPwd").value==""){alert("Enter your New Password please");document.getElementById("changepwd:newPwd").focus();return false}if(document.getElementById("changepwd:confirmPwd").value==""){alert("Enter your Confirm Password please");document.getElementById("changepwd:confirmPwd").focus();return false}if(document.getElementById("changepwd:confirmPwd").value!=document.getElementById("changepwd:newPwd").value){alert("Password mismatch");document.getElementById("changepwd:confirmPwd").focus();return false}else{document.login.submit}}function signupValidation(){if(document.getElementById("rform:fName").value==""){alert("Enter your Name please");document.getElementById("rform:useId").focus();return false}if(!checkMailId(document.getElementById("rform:eMail").value)){document.getElementById("rform:eMail").focus();return false}if(document.getElementById("rform:mobile").value==""){alert("Enter your Mobile number please");document.getElementById("rform:currentPwd").focus();return false}if(document.getElementById("rform:signupPwd").value!=document.getElementById("rform:signupCPwd").value){alert("Confirm Password doesn't match");document.getElementById("rform:signupPwd").focus();return false}if(document.getElementById("rform:signupPwd").value==""){alert("Enter your Password please");document.getElementById("rform:signupPwd").focus();return false}if(document.getElementById("rform:signupCPwd").value==""){alert("Confirm Password mismatch");document.getElementById("rform:signupCPwd").focus();return false}else{document.rform.submit}}function validateProjectEntry(){if(document.getElementById("addProjectForm:projectname").value==""){alert("Enter Project Name please");document.getElementById("addProjectForm:projectname").focus();return false}if(document.getElementById("addProjectForm:addline1").value==""){alert("Mention your project Area please");document.getElementById("addProjectForm:addline1").focus();return false}else{document.addProjectForm.submit}}function careerValidation(){if(document.getElementById("addCareerForm:careerheadline").value==""){alert("Enter Career HeadLine please");document.getElementById("addCareerForm:careerheadline").focus();return false}else{document.addCareerForm.submit}}function editProjectValidation(){if(document.getElementById("editProject:projectname").value==""){alert("Enter Project Name please");document.getElementById("editProject:projectname").focus();return false}if(document.getElementById("editProject:addline1").value==""){alert("Enter Project Area please");document.getElementById("editProject:addline1").focus();return false}else{document.editProject.submit}}function newsValidation(){if(document.getElementById("addCareerForm:newssubject").value==""){alert("Enter News Subject please");document.getElementById("addCareerForm:newssubject").focus();return false}if(document.getElementById("addCareerForm:newsdesc").value==""){alert("Enter DEscription of this news please");document.getElementById("addCareerForm:newsdesc").focus();return false}else{document.addCareerForm.submit}}function editNewsValidation(){if(document.getElementById("editNewsForm:newssubject").value==""){alert("Enter News Subject please");document.getElementById("editNewsForm:newssubject").focus();return false}else{document.editNewsForm.submit}}function resumeValidation(){if(document.getElementById("resumeUpload:name").value==""){alert("Please Enter your Name");document.getElementById("resumeUpload:name").focus();return false}if(document.getElementById("resumeUpload:file1").value==""){alert("Please Upload your Resume");document.getElementById("resumeUpload:file1").focus();return false}else{document.resumeUpload.submit}};
