//Webmaster: Chanthoeun To
//Date: February 1, 2004

// high light the menu bar on mouse over
function hilite(imgname,imgsrc) {
  document.images[imgname].src = imgsrc;
}

/*
function try(win_url,win_name,win_width,win_height) {
  newwin = window.open(win_url,win_name,"height="+win_height+",width="+win_width+",scrollbars=yes,location=no,toolbar=no,directories=no,menubar=yes,status=no,resizable=yes");
  newwin.opener = window;
  if (document.images) {  // eg if it's js 1.1 (which supports 'focus()')
    newwin.focus();
  }
}
*/


function open01(win_url,win_name,win_width,win_height) {
  newwin = window.open(win_url,win_name,"height="+win_height+",width="+win_width+",scrollbars=yes,location=no,toolbar=no,directories=no,menubar=no,status=no,resizable=yes");
  newwin.opener = window;
  if (document.images) {  // eg if it's js 1.1 (which supports 'focus()')
    newwin.focus();
  }
}
	
function open02(win_url,win_name,win_width,win_height) {
  newwin = window.open(win_url,win_name,"height="+win_height+",width="+win_width+",scrollbars=auto,location=no,toolbar=no,directories=no,menubar=no,status=no,resizable=no");
  newwin.opener = window;
  if (document.images) {  // eg if it's js 1.1 (which supports 'focus()')
    newwin.focus();
  }
}	
	
function open03(win_url,win_name,win_width,win_height) {
  newwin = window.open(win_url,win_name,"height="+win_height+",width="+win_width+",scrollbars=yes,location=yes,toolbar=yes,directories=yes,menubar=yes,status=yes,resizable=yes");
  newwin.opener = window;
  if (document.images) {  // eg if it's js 1.1 (which supports 'focus()')
    newwin.focus();
  }
}	
	
// popup a window for login
function popUp(mylink,windowname) {
  if(!window.focus)return;
  var newwin = window.open(mylink,windowname,'scrollbars=no,status=yes,menubar=no,height=320,width=350,dependent=no')
  newwin.focus();
  mylink.target = windowname;
}


//Date
var isn1=null;
var isn2=false;
today=new Date();

function isnArray() {
 argnr=isnArray.arguments.length
 for (var i=0;i<argnr;i++) {
  this[i+1] = isnArray.arguments[i];
  }
 }
var isnMonths=new isnArray("January","February","March","April","May","June","July","August","September","October","November","December");



