<!--
if (document.layers) {
	document.write('<link rel="stylesheet" href="css/netscape.css" type="text/css">');
} else if (document.all) {
	document.write('<link rel="stylesheet" href="css/compliant.css" type="text/css">');
} else {
	document.write('<link rel="stylesheet" href="css/netscape.css" type="text/css">');
}

function create_child_win(child_url, window_id, w, h) {
   return window.open(child_url,window_id,"toolbar,status,menubar,scrollbars,resizable,width="+w+",height="+h+"");
}
function create_dialog_win(dialog_url, window_id, w, h) {
   return window.open(dialog_url,window_id,"resizable,width="+w+",height="+h+"");
}
function close_window(){
   self.close();
}
function win_write(winHandle, str, boolNL) {
	winHandle.document.write(str);
	if (boolNL == true) {
		winHandle.document.write("<BR>")
	}
}
function show_img(winHandle, img) {
	winHandle.location=img;
}
function expireCookie(name) {
	if (document.cookie != "") {
		thisCookie = document.cookie.split("; ");
		expireDate = new Date;
		expireDate.setDate(expireDate.getDate() - 1);
		for (i = 0; i < thisCookie.length; i++) {
			cookieName = thisCookie[i].split("=")[0];
			if (cookieName == name) {
				document.cookie = cookieName + "=;expires=" + expireDate.toGMTString();
			}
		}
	}
}
function setCookie(name, value) {
	expireCookie(name);
	document.cookie = name + "=" + value + ";path=/";
}
function getCookie(name) {
	if (document.cookie != "") {
		thisCookie = document.cookie.split("; ");
		for (i = 0; i < thisCookie.length; i++) {
			cookieParts = thisCookie[i].split("=");
			if (cookieParts[0] == name) {
				return (cookieParts[1]);
			}
		}
	}
	return ("");
}
//-->

