<!--

function popUp(url){
	open (url,"","height=300,width=310,top=80,left=80")
}

function getCookieVal (offset){
	var endstr = document.cookie.indexOf (";", offset);
	if (endstr == -1)endstr = document.cookie.length;
	return unescape(document.cookie.substring(offset, endstr));
}

function getCookie (name){
	var arg = name + "=";
	var alen = arg.length;
	var clen = document.cookie.length;
	var i = 0;
	while (i < clen){
		var j = i + alen;
		if (document.cookie.substring(i, j) == arg)return getCookieVal (j);
		i = document.cookie.indexOf(" ", i) + 1;
		if (i == 0)break; 
	}
	return null;
}

function setCookie(name, value, expire){
	var now = new Date();
	var month = 30*24*60*60*1000;
	var escape = new Date(now.getTime() + (expire*month));
	document.cookie = name+"="+value+"; expires="+escape.toGMTString()+";"+"path=/";
}

function isNotDefined(variable){
	return((variable=="undefined")?true:false);
}

function lmenu(){
	if (getCookie('ctest') != null){
		document.write('<table cellspacing="0" cellpadding="0">');
		document.write('<tr>');
		document.write('<td>');
		if (getCookie('blank') == "true"){
			document.write('<a onclick="javascript:setCookie(\'blank\', \'false\', 5*12);" href="javascript:location.reload()" target="_self"><img src="http://www.thumbnailseries.com/buttons/current.png" width="13" height="13" border="0" alt=""></a>');
		}else{
			document.write('<a onclick="javascript:setCookie(\'blank\', \'true\', 5*12);" href="javascript:location.reload()" target="_self"><img src="http://www.thumbnailseries.com/buttons/new.png" width="13" height="13" border="0" alt=""></a>');
		}
		document.write('</td>');
		document.write('<td>');
		document.write('<font class="s3"><b>&nbsp;Check the box to open links in new window.</b></font>');
		document.write('</td>');
		document.write('</tr>');
		document.write('</table>');

	}
}

//-->
