function ShowPopup(popupURL, width, height) { var popup = window.open(popupURL,"FastFrate",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width='+width+',height='+height+' '); if( navigator.appName.substring(0,8) == "Netscape" ) { popup.location = popupURL; } } function IsMailValid(strEmail) { if(window.RegExp) { var reg1str = /^([\w\-\.]+)@((\[([0-9]{1,3}\.){3}[0-9]{1,3}\])|(([\w\-]+\.)+)([a-zA-Z]{2,4}))$/; var reg = new RegExp(reg1str); if (!reg.test(strEmail)) { return false; } else { return true; } } } function GoToTrack(){ if (document.forms[0].ProBillNo.value !="") window.location.href="http://www.fastfrate.com/fastnet/fastnet.aspx?ProbillNo=" + document.forms[0].ProBillNo.value; } function SubmitFastnetLogin(){ document.forms[0].submit(); } function writeCookie(name, value, hours) { var expire = ""; if(hours != null) { expire = new Date((new Date()).getTime() + hours * 3600000); expire = "; expires=" + expire.toGMTString(); } document.cookie = name + "=" + escape(value) + expire + "; path=/"; }