var strSite = 'http://sfa.reachmee.com/flight_crew/'; var strURL = 'vacancies.aspx'; var strHeight = '4000'; var strScroll = ""; if (document.location.search) { var PARAMNAME="RMURL"; var query=document.location.search.substring(1); if (query.length>0) { if(query.toLowerCase().indexOf("pp=601") > -1 || query.toLowerCase().indexOf("pp=602") > -1 || query.toLowerCase().indexOf("pp=603") > -1) { query = query.replace("RMURL=", ""); //alert(query); query = escape(query); //alert(query); query = query.replace(".asp", "%2Easp") //alert(query); query = "RMURL=" + query; //alert(query); } var pairs=query.split("&"); for (var i=0; i < pairs.length; i++ ) { var myItem = pairs[i]; var myArr = myItem.split("="); if (myArr.length == 2){ if (myArr[0] == PARAMNAME){ strURL = unescape(myArr[1]); break; } } } } } if (strURL == "ag") { strURL = "ApplicationGeneral.asp" } if (strURL.substring(0,1) == "S" || strURL.substring(0,1) == "G" || strURL.substring(0,1) == "R") { //*** Redirect old links strURL = "lostpassword.aspx" } /*if (document.documentElement && document.documentElement.scrollTop) { strScroll = "document.documentElement.scrollTop=0;"; } else if (document.body) { strScroll = "document.body.scrollTop=0;"; }*/ strScroll = "document.documentElement.scrollTop=0;document.body.scrollTop=0;"; document.write("");