<!-- 

var NULL=null;

function newWinPageSize(pageName,hght,wdth)
{
  attr="height="+hght+",width="+wdth+",toolbar=no,locationbar=no,directories=no,menubar=no,scrollbars=yes";
  window.open(pageName,"other",attr);
}

function year()
{
  var today=new Date();
  var year=today.getYear();
  if (year<2000) year=year+1900;
  return year;
}

function newWinPage(pageName)
{
  window.open(pageName,"other","height=500,width=700,toolbar=no,locationbar=no,directories=no,menubar=no,scrollbars=yes,resizable=yes");
}

function doubleChange(directory,page)
{
  var menuPage=directory+"menu.html";
  var mainPage=directory+page+".html";
  parent.menu.location.href=menuPage;
  parent.main.location.href=mainPage;
}

function quickPage(page)
{
  parent.main.location.href=page;
}

// this function gets the cookie, if it exists
function getCookie( name ) {
	
var start = document.cookie.indexOf( name + "=" );
var len = start + name.length + 1;
if ( ( !start ) &&
( name != document.cookie.substring( 0, name.length ) ) )
{
return null;
}
if ( start == -1 ) return null;
var end = document.cookie.indexOf( ";", len );
if ( end == -1 ) end = document.cookie.length;
return unescape( document.cookie.substring( len, end ) );
}

function setCookie(name,value,expire)
{
  var expireDate=new Date();
  expireDate.setTime(expireDate.getTime()+(expire*10*365*24*3600*1000));
  
  var cookieString=name+"="+value+"; ";
  if (expire!=null) cookieString+="expires="+expireDate.toGMTString()+"; ";
  cookieString+="path=/;";

  document.cookie=cookieString;
}

function delCookie(name) 
{
  if (getCookie(name))
  {
    document.cookie=name+"="+"; expires=Thu, 01-Jan-70 00:00:01 GMT";
  }
}


function openclose(url) 
{

	window.open(url);
	window.close();
	
}
