<!-- 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() {
	if (document.images) {  
		iobj = new MakeArray(8);
		
	//	iobj[ 0].src = "/i/btn_profconn_login_off.gif";
	//	iobj[ 1].src = "/i/btn_profconn_login_on.gif";
		iobj[ 2].src = "/images/global/footer_explore_korea_off.gif";
		iobj[ 3].src = "/images/global/footer_explore_korea_on.gif";
		iobj[ 4].src = "/images/global/footer_memoriam_off.gif";
		iobj[ 5].src = "/images/global/footer_memoriam_on.gif";
		iobj[ 6].src = "/images/gnav/btn_submit_green_new.gif";
		iobj[ 7].src = "/images/gnav/btn_submit_orange_new.gif";
		
		img_ld=1;
	}
	window.self.focus();
}
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; 
	}
}

Image1 = new Image(192,700)
Image1.src = "/images/gnav/home_main_Feb04.jpg"

Image2 = new Image(192,700)
Image2.src = "/images/gnav/home_mission_Feb04.jpg"

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

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

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";
}
