function isBlank(item) { item = String(item).toLowerCase(); if(item == "undefined" || item == "" || item == "null") return true; else return false; } function popUpPassword() { window.open('/login-create-account/changePassword.asp','popUp','toolbar=no,statusbar=no,location=no,directories=no,status=yes,menubar=no,resizable=yes,copyhistory=no,scrollbars=no,scrolling=no,width=400,height=200,top=25,left=25'); return false; } function validateSearchTerm(searchQuery) { var returnValue = true; if(isBlank(searchQuery)) { alert("Please enter a search term."); returnValue = false; } return returnValue; } function popIt(width, height, scrollbars){ if(!width) width = "410"; if(!height) height = "450"; if(!scrollbars) scrollbars = 1; var windowString = 'width=' + width + ',height=' + height + ',resizable=1,status=0,toolbar=no,scrollbars=' + scrollbars + ',scrolling=auto'; var popItWindow = window.open('',"popIt", windowString); return false; } function popItNoResize(width, height, scrollbars){ if(!width) width = "410"; if(!height) height = "450"; if(!scrollbars) scrollbars = 1; var windowString = 'width=' + width + ',height=' + height + ',resizable=0,status=0,toolbar=no,scrollbars=' + scrollbars + ',scrolling=auto'; var popItWindow = window.open('',"popIt", windowString); return false; } function popUp(URL,height,width,scrollbars) { if(!width) width = "410"; if(!height) height = "450"; if(!scrollbars) scrollbars = "1"; day = new Date(); id = day.getTime(); eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=" + scrollbars + ",location=0,statusbar=0,menubar=0,resizable=0,width=" + width + ",height=" + height + ",left = 412,top = 266.5');"); }