<!-- Pop a window -->
var popupWindow;
function popup(url,scrollbars,width,height){
    popupWindow = open(url, 'pxPopupWindow', 'toolbar=0,location=0,directories=0,status=0,menubars=0,resizable=0,scrollbars='+scrollbars+',width='+width+',height='+height+',top=20,left=20');
    if (popupWindow != null) {
        popupWindow.focus();
    }
}

function popWin(url, winName, popWidth, popHeight, popTop, popLeft, popScroll){
	var top = (popTop == "undefined" || popTop < 0) ? 20 : popTop;
	var left = (popLeft == "undefined" || popLeft < 0) ? 20 : popLeft;
	var options = 'width='+popWidth+',height='+popHeight+',scrollbars='+popScroll+',top='+top+',left='+left+',location=no,toolbar=0,menubar=0,resizable=0,directories=0';
	var myWin = window.open(url, winName, options);
	myWin.focus();
}
<!--- footer email input field --->
var condText;
function clearTextBoxOnCondition(textBox,conditionText){
        if(textBox.value == conditionText) {
          textBox.value="";
          condText=conditionText;
        }
}

function fillTextBoxOnCondition(textBox){
        if(textBox.value == "") {
          textBox.value=condText;
        }
}
function sendURL(targetURI) {
	window.location = wsmlMakeWebServiceHref(targetURI);
}
var img_ld=0;
function ld_imgs() { }
function nav_ld_imgs() { }
function MakeArray(n) {
	this.length = n;
	for (var i = 0; i< n; i++) this[i] = new Image();
	return this;
}
	
function chng_img(imgName,imgNum) {
	if (document.images && img_ld) {
		document [imgName].src = iobj[imgNum].src; 
	}
}


function mission() {
document.emp.src = Image2.src; return true;
}

function original() {
document.emp.src = Image1.src; return true; 
}

function getCookie(name)
{
	var nameEQ = name + "=";
	var ca = document.cookie.split(';');
	for(var i=0;i < ca.length;i++)
	{
		var c = ca[i];
		while (c.charAt(0)==' ') c = c.substring(1,c.length);
		if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
	}
	return null;
}

function setCookie(name, value, expires, path, domain, secure) {
    document.cookie = 
    	name + "=" + escape(value) +
        ((expires) ? "; expires=" + expires.toGMTString() : "") +
        ((path) ? "; path=" + path : "") +
        ((domain) ? "; domain=" + domain : "") +
        ((secure) ? "; secure" : "");
}

function deleteCookie(name, path, domain) {
	document.cookie = name + "=" + 
		((path) ? "; path=" + path : "") +
		((domain) ? "; domain=" + domain : "") +
		"; expires=Thu, 01-Jan-70 00:00:01 GMT";
}
