        //popup
function popup(url,w,h) {
	l = (screen.width) ?	(screen.width-550) / 2	: 0;
	t = (screen.height) ?	(screen.height-400) / 2 : 0;	
	var opt='top='+t+',left='+l+',width='+w+',height='+h;
	opt=opt+',toolbar=no,status=no,directories=no,scrollbars=no,location=no,resizable=no,menubar=no';
	window.open(url,'Content',opt);
}
function popup01(url,w,h) {
	l = (screen.width) ?	(screen.width-550) / 2	: 0;
	t = (screen.height) ?	(screen.height-400) / 2 : 0;	
	var opt='top='+t+',left='+l+',width='+w+',height='+h;
	opt=opt+',toolbar=no,status=no,directories=no,scrollbars=yes,location=no,resizable=no,menubar=no';
	window.open(url,'Content',opt);
}







	function pop(pop, name, width,height)
	{
		var url = pop;  
		var wd = width;
		var he = height;

		window.open(url, name,"left=100, top=50, toolbar=0,menubar=0,scrollbars=no,resizable=no,width=" + wd +",height=" + he + ";")
	}

	function pops(pop, name, width, height)
	{
		var url = pop;
		var wd = width;
		var he = height;

		window.open(url, name, "left=100, top=50, toolbar=0, menubar=0, scrollbars=yes, resizable=no, width=" + wd + ", height=" + he + ";")
	}

	function openerurl(url, pop)
	{
		opener.window.parent.location.href = url;
		if (pop == "") self.close();
		else window.location.href = pop;
	}

	function go(url)
	{
		if (url == "") self.close();
		else window.location.href = url;
	}

	function lgcGetCookie(name){
		var cname = name + "=";
		var dc = document.cookie;
		var val = "";

		if (dc.length > 0) {
			begin = dc.indexOf(cname);
			if (begin != -1) {
				begin += cname.length;
				end = dc.indexOf(";", begin);
				if (end == -1) end = dc.length;
				val += unescape(dc.substring(begin, end));
			}
		}

		return val;
	}

