var s = document.referrer; var ts = window.top.location.href; var tl = window.top.location.href; var tss = window.location.href; if (s.substr(0,24)=="http://www.giorgenti.com" || s.substr(0,17)=="www.giorgenti.com" || s.substr(0,32)=="http://www.proimagetrainers.com/" || s.substr(0,24)=="www.proimagetrainers.com" || s=="" || s.substr(0,13)=="giorgenti.com" || s.substr(0,28)=="http://clothesforsuccess.com" || s.substr(0,21)=="clothesforsuccess.com" || s.substr(0,25)=="www.clothesforsuccess.com" || s.substr(0,32)=="http://www.clothesforsuccess.com" || s.substr(0,20)=="http://206.112.40.34") { }else{ document.cookie = "Keywrd=" + document.referrer + ";path=/;Expires=Thu, 01-Jan-40 00:00:01 GMT"; if ((s.indexOf("shirt")!=-1 || s.indexOf("Shirt")!=-1) && s.indexOf("bestcustomshirt.com")==-1){ window.top.location.href = "http://www.bestcustomshirt.com/Default.asp?refer=" + s ; } } function valid(){ var emlc = document.custform.eml.value; if (document.custform.name.value==""){ alert ('Please write your Name'); document.custform.name.focus(); return false; } else if (emlc==""){ alert ('Please write Email Address'); document.custform.eml.focus(); return false; } else if (emlc.indexOf("@")== -1){ alert ('Your email address does not appears to be valid,\n Please write a valid Email address'); document.custform.eml.focus(); return false; } else if (emlc.indexOf(".")==-1){ alert ('Your email address does not appears to be valid, Please write a valid Email address'); return false; }else if (document.custform.profession.value==""){ alert ('Please write your profession, for example CEO, President, Student, etc'); document.custform.profession.focus(); return false; }else if (document.custform.phone.value==""){ alert ('Please write your phone number'); document.custform.phone.focus(); return false; }else if (document.custform.time.value==""){ alert ('Please write which date and time best suits to you.'); document.custform.time.focus(); return false; }else { var ys = window.location.href; document.custform.directory.value = ys.substr(ys.lastIndexOf("/")+1); document.custform.Keywrd.value = ''; return true; } } function tellfriend(){ window.open('tell.htm?Page='+ window.location.href, 'tellfriend', 'width=370,height=500,status=no,resizable=no,scrollbars=yes,top=0,left=50'); } function vas(){ if (document.srch.search.value==""){ alert ('Please write what you want to search'); return false; }else{ return true; } } function pageld(){ if (ts.search("Email=")>1){ document.custform.eml.value = ts.substring(ts.search("Email=")+6, ts.indexOf("&",ts.search("Email="))); document.custform.trackedemail.value = ts.substring(ts.search("Email=")+6, ts.indexOf("&",ts.search("Email="))); } } var lpPosY = screen.height/2 - 70; var lpPosX = screen.width/2 - 70 ; function openchat(){ var ppp = window.open('http://server.iad.liveperson.net/hc/11536656/?cmd=file&file=visitorWantsToChat&site=11536656&referrer='+document.location,'chat11536656','width=472,height=320'); ppp.focus(); } // window.top.location.href = "http://www.clothesforsuccess.com/?Pg=" + window.location.href + "&Keywrd=" + document.referrer; function verifyemail(email) { if (email=="" || email.indexOf("@")==-1 || email.indexOf(".")==-1){ return false; } email = email.toLowerCase(); NotAllowed = Array("..",".@","@.","@@"," ",";",","); Allowed = Array("_","-","0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z",".","@"); for (Ji=0;Ji < NotAllowed.length;Ji++){ if (email.indexOf(NotAllowed[Ji])!=-1){ // Finds a character which is not allowed return false; break; } } // --- Check . or @ is present either at the start or at the end if (email.substr(0,1)=="." || email.substr(0,1)=="@" || email.lastIndexOf(".")==(email.length-1) || email.lastIndexOf("@")==(email.length-1)){ return false; } TT = email.substring(email.indexOf("@")+1); if (TT.indexOf(".")==-1){ // Check . is not present after @ return false; } if (TT.indexOf("@")!=-1){ // there are more than 1 @s in the email return false; } //-------------- Verify Allowed Characters -------------- var found=false; for (Ji=0;Ji < email.length;Ji++){ found = false; for (Ki=0;Ki < Allowed.length;Ki++){ if (email.substr(Ji,1)==Allowed[Ki]){ found=true; break; } } if (found==false){ return false; } } //--------- If All tests above are OK then return true return true; }