function shiptrack() {
wbl=window.open("http://NEMFWEB.nemf.com/ShpTrack.nsf/request", "_self")
}

function manifest() {
	man=window.open("http://NEMFWEB.NEMF.COM/manifest.nsf/request?openform", "_self")
} 
 

function terms(TM) {
	var url = "http://NEMFWEB.NEMF.COM/webapps.nsf/terminal+detail?openform&Tm=" + TM + "&Eod"
	TermD=window.open(url, "TerminalDetail", "scrollbars=1,menubar=1,toolbar=1,location=0,status=0,resizable=0,width=480,height=240")
	TermD.focus()
} 

	

function servstd() {
	wbl=window.open("http://NEMFWEB.NEMF.COM/ServiceS.nsf/request", "_self")
}

function ValidateData() {

      var tCity = window.document.TermSearch.City.value
      var tState = window.document.TermSearch.State.value
      var tZip = window.document.TermSearch.Zip.value

      if (tCity == "" && tState == "" && tZip == "") {
         alert("(City & State) OR Zip must be entered for terminal search.")
         return 
         }

      if (tZip != "" && (tCity != "" || tState != "")) {
         alert("Please enter (City & State) OR Zip for terminal search, not both.")
         return 
         }

      if (tZip == "" && (tCity == "" || tState == "")) {
         alert("Please enter both (City & State) for terminal search.")
         return
         }

      if (tCity == "") { tCity = "^" }
      if (tState == "") { tState = "^" }
      if (tZip == "") { tZip = "^" }

      var url  = "http://NEMFWEB.NEMF.COM/webapps.nsf/Terminal+Detail?openform"
          url += "&SearchCity=" + tCity.toUpperCase().replace(/ /g, "^")
          url += "&SearchState=" + tState.toUpperCase().replace(/ /g, "^")
          url += "&SearchZip=" + tZip.toUpperCase().replace(/ /g, "^")
          url += "&Eod"
    
      newwindow = window.open(url, "TerminalDetail", "scrollbars=1,menubar=1,toolbar=1,location=0,status=0,resizable=0,width=480,height=240")
      newwindow.focus()

}

function ClearFields() {

      window.document.TermSearch.City.value = ""
      window.document.TermSearch.State.value = ""
      window.document.TermSearch.Zip.value = ""
}
   
function TermList(ST) {
	var url = "http://NEMFWEB.NEMF.COM/webapps.nsf/terminal+listing?openagent&St=" + ST + "&Eod"
	TermL=window.open(url, "TerminalListing", "scrollbars=1,menubar=1,toolbar=1,location=0,status=0,resizable=1,width=480,height=240")
	TermL.focus()
}




function AppDriver() {
	var url = "http://NEMFWEB.NEMF.COM/webapps.nsf/AppDriver?OpenAgent"
	DApp=window.open(url, "ApplicationDriver","scrollbars=1,menubar=0,toolbar=0,location=0,status=0,resizable=1,width=480,height=240")
	DApp.focus()
}

function AppNonDriver() {
	var url = "http://NEMFWEB.NEMF.COM/webapps.nsf/AppNonDriver?OpenAgent"
	NDApp=window.open(url, "ApplicationNonDriver","scrollbars=1,menubar=0,toolbar=0,location=0,status=0,resizable=1,width=480,height=240")
	NDApp.focus()
}

function TerminalList() {
var url = "http://NEMFWEB.NEMF.COM/webapps.nsf/terminal+listing?OpenAgent"
	TList=window.open(url, "_self")
	
}



function OnLineTrace() {
var url = "http://NEMFWEB.NEMF.COM/oltrace.nsf/request?openform"
	OnLine=window.open(url, "_self")
}


function PodBol() {
var url = "http://NEMFWEB.NEMF.COM/ImgReq.nsf/Images+Request?openform"
	PodBolWin=window.open(url, "_self")
}


function YourWay() {
var url = "http://NEMFWEB.NEMF.COM/webapps.nsf/Your+Way+SFT?OpenAgent"
	YourWayWin=window.open(url, "_self")
}

function ShipmentLabels() {
var url = "http://nemfweb.nemf.com/ShippingLabels.nsf"
	ShipmentLabelsWin=window.open(url, "_self") 
	
}


function forms() {
var url = "http://NEMFWEB.NEMF.COM/webapps.nsf/Print+Forms?OpenAgent"
             formsWin=window.open(url, "_self") 
}

function DownLoadProgram() {
/* var url = "http://www.nemf.com/Rateprogram/rateform.ASP"  
/* var url = "http://www.nemf.com/rateprogram/nemfinst.exe"  */
 var url = "http://NEMFWEB.NEMF.COM/webapps.nsf/Download+Current+Rating+Program?OpenAgent" 
  	DownLoadProgramWin=window.open(url, "DownLoadProgram", "scrollbars=1,menubar=0,toolbar=0,location=0,status=0,resizable=1,width=480,height=240")
	DownLoadProgramWin.focus() 
/* var url = "http://NEMFWEB.NEMF.COM/NEMFM/msg.nsf/WebList?OpenAgent" */
/*	MsgWin=window.open(url, "_self")  */

}

function Affiliate() {
 var url = "http://NEMFWEB.NEMF.COM/partnersmenu.nsf"
	AffiliateWin=window.open(url, "_self") 
}



function Start(page) {
OpenWin = this.open(page, "CtrlWindow", "toolbar=1,location=0,width=700,height=600,top=50,left=150,resizable=yes,scrollbars=yes");
OpenWin.focus ();
}


function PriceSheet() {
var url = "http://NEMFWEB.NEMF.COM/WebEntry.nsf/PriceSheetDisclaimerr?Openform"
	RatePonyWin=window.open(url, "_self")
}

function CostEstimator() {
var url = "http://NEMFWEB.NEMF.COM/WebEntry.nsf/CostEstimatorDisclaimerr?Openform"
	eQuoteWin=window.open(url, "_self")
}



function ReqPassword() {
var url = "http://nemfweb.nemf.com/PWRequest.nsf"
PW=window.open(url, "_self")
}

function PODImgReq() {
var url = "http://NEMFWEB.NEMF.COM/DocImgReq.nsf"
ImgReqWin=window.open(url,"_self")
}

function PODYourWay() {
var url = "http://NEMFWEB.NEMF.COM/webapps.nsf/Your+Way+POD?OpenAgent"
	PODYourWayWin=window.open(url, "_self")
}

function WebBOL1() {
var url = "http://NEMFWEB.NEMF.COM/eBOL.nsf"
WBOL1=window.open(url, "_self")
} 

function YourBOL1() {
var url = "http://NEMFWEB.NEMF.COM/webapps.nsf/YourBOL?OpenAgent"
YBOL1=window.open(url, "YourBOL1","scrollbars=1,menubar=0,toolbar=0,location=0,status=0,resizable=1,width=480,height=240")
	YBOL1.focus()
} 
function WebBOL() {
var url = "http://NEMFWEB.NEMF.COM/webEntry.nsf/createBOL?Openform"
WBOL=window.open(url, "_self")
} 

function YourBOL() {
var url = "http://NEMFWEB.NEMF.COM/webEntry.nsf/createBOL?Openform"
YBOL=window.open(url, "_self")
} 

function pickup() {
	/* Term5=window.open("comingsoon.html", "_self") */
var url = "http://NEMFWEB.NEMF.COM/WebEntry.nsf/SchedulePickup?Openform"
	PickupWin=window.open(url, "_self")
}

function msgCenterOld() {
	Term6=window.open("message.html", "_self")
}

function msgCenter() {   
	var url = "http://NEMFWEB.NEMF.COM/NEMFMsg.nsf/WebList?OpenAgent" 
	MsgWin=window.open(url, "_self")  
}

function IOD() {
	/* Term7=window.open("comingsoon.html", "_self")  */
 var url = "http://NEMFWEB.NEMF.COM/WebEntry.nsf/OnDemandDisclaimerr?Openform" 
	IODWin=window.open(url, "_self")  
}

function servicearea() {
	Term5=window.open("ServiceArea.html", "_self")
}

function AR() {
	/* Term5=window.open("comingsoon.html", "_self") */
   var url = "http://NEMFWEB.NEMF.COM/WebEntry.nsf/OnDemandDisclaimerr?Openform" 
	ARWin=window.open(url, "_self")  
}

function Docu(){
var url = "http://www.nemf.com/PickupBol.pdf"
DocuWin=window.open(url, "Documentation","scrollbars=1,menubar=0,toolbar=0,location=0,status=0,resizable=1,width=480,height=240")
	DocuWin.focus()

}


function oceanair() {
var url = "HTTP://NEMFWEB.NEMF.COM/epickup2.nsf/start?openagent"
	PUOceanAir=window.open(url, "_self")
}

function CustomPU() {
	PUCustom=window.open("comingsoon.html", "_self")
}
function EmpOp() {
var url = "http://NEMFWEB.NEMF.COM/NEMFempop.nsf/frmemp?OpenForm"
	JobOpWin=window.open(url, "_self")
} 

function VolumeSpot() {
var url = "http://nemfweb.nemf.com/volumequote.nsf"
	PUOceanAir=window.open(url, "_self")
}


function ChangePassword() {
	ChangePassword=window.open("http://nemfweb.nemf.com/ChgPassword.nsf", "_self")
}


function ForgetPassword() {
	ForgetPassword=window.open("http://nemfweb.nemf.com/ForgotPassword.nsf", "_self")
}


function validate(form){

var x=document.testform.pro.value
var anum=/(^\d+$)|(^\d+\.\d+$)/

	
	if(form.pro.value.length>8){
		alert("Please enter a valid 8 digit numeric pro number.");
		form.pro.focus();
		return false;
	}
	else if(form.pro.value.length<8){
		alert("Please enter a valid 8 digit numeric pro number.");
		form.pro.focus();
		return false;
	}
	
	if (anum.test(x))
	testresult=true
	else{
	alert("Please enter a valid 8 digit numeric pro number.")
	testresult=false
	}
	return (testresult)
	
}



