function popup(url, target, width, height) {
	desktop = window.open(url, target, "toolbar=no,location=no,status=no,menubar=no,scrollbars=no,width="+width+",height="+height+",resizable=no");
	desktop.focus();
}

function popupResizable(url, target, width, height) {
	desktop = window.open(url, target, "toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,width="+width+",height="+height+",resizable=yes");
	desktop.focus();
}

function popupComplete(url, target, width, height) {
	desktop = window.open(url, target, "toolbar=yes,location=no,status=no,menubar=yes,scrollbars=yes,width="+width+",height="+height+",resizable=yes");
	desktop.focus();
}

function toggle(n) {
	document.all[n].style.display = ('none' == document.all[n].style.display) ? '' : 'none';
}

function handlePopup(name, closeIt) {
	if (closeIt == 'true') {
		opener.location.reload();
		window.close();
	} else
		window.name = name;
}
 
function ScrollMessage(msg, pos) {
   var newtext = msg.substring(pos, msg.length) + msg.substring(0, pos);
   var div = document.getElementById("footer");
   div.firstChild.nodeValue = newtext;
   pos++;
   if (pos > msg.length) pos = 0;
   window.setTimeout("ScrollMessage()",150);
}
 