<!-- 
// open a new window
var popupWindow = null;
var popupWindow_closed = false;

function PopUp(url, width, height, scroll) {
 if (document.all)
     var xMax = screen.width, yMax = screen.height;
 else

 if (document.layers)
     var xMax = window.outerWidth, yMax = window.outerHeight;
 else
     var xMax = 640, yMax=480;

     var xOffset = (xMax - width)/2, yOffset = (yMax - height)/2;

popupWindow=eval("window.open('" +url+ "', 'popUp', 'width='+width+',height='+height+',screenX="+xOffset+",screenY="+yOffset+", top="+yOffset+",left="+xOffset+",toolbar=no,status=no,scrollbars='+scroll+',resizable=no,menubar=no')");
popupWindow.focus();

 if (popupWindow_closed) {
     popupWindow_closed = false;
 }
}


// close a new window
function closePopUp() {
  if (popupWindow != null) {
     if (!popupWindow_closed) {
  	popupWindow_closed = true;
        popupWindow.close();
      }
   }
}


// ----------------------------------- Cookie Function / BEBIN --------------------------
function createCookie(name, value, days)
{
	if (days)
	{
		var date = new Date();
		date.setTime(date.getTime()+(days*24*60*60*1000));
		var expires = "; expires="+date.toGMTString();
	}
	else var expires = "";
	document.cookie = name+"="+value+expires+"; path=/";
}

function readCookie(name)
{
	var nameEQ = name + "=";
	var ca = document.cookie.split(';');
	for(var i=0;i < ca.length;i++)
	{
		var c = ca[i];
		while (c.charAt(0)==' ') c = c.substring(1,c.length);
		if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
	}
	return null;
}

function eraseCookie(name)
{
	createCookie(name,"",-1);
}
// ----------------------------------- Cookie Function / END ----------------------------


// Statusbar Mouseover
function DisplayStatusMsg(msgStr) {
  status=msgStr;
  document.returnValue = true;
}
//-->
