function orderPopup(url,wname) {
	
	var w=screen.availWidth;
	var h=screen.availHeight;
	var l = (screen.availWidth - w) / 2;
	var t = (screen.availHeight - h) / 2;
	xwin = new Array();
	xwin[wname]=window.open(url,wname,'width='+w+',height='+h+',screenX='+l+',screenY='+t+',left='+l+',top='+t+',toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=1,resizable=1');
	xwin[wname].blur();
	window.focus();
}
function popunderToBringSomeXtraBucks(url,wname) {
	
	var w=screen.availWidth;
	var h=screen.availHeight;
	var l = (screen.availWidth - w) / 2;
	var t = (screen.availHeight - h) / 2;
	xwin = new Array();
	xwin[wname]=window.open(url,wname,'width='+w+',height='+h+',screenX='+l+',screenY='+t+',left='+l+',top='+t+',toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=1,resizable=1');
	xwin[wname].blur();
	window.focus();
}
function ReadCookie(cookieName) {
	var theCookie=""+document.cookie;
	var ind=theCookie.indexOf(cookieName);
	if (ind==-1 || cookieName=="") return ""; 
	var ind1=theCookie.indexOf(';',ind);
	if (ind1==-1) ind1=theCookie.length; 
	return unescape(theCookie.substring(ind+cookieName.length+1,ind1));
}

function hideLayer(t) {
	s=document.getElementById(t);
	s.style.display='none';	
}
function showLayer(t) {
	s=document.getElementById(t);
	s.style.display='block';	
}