function co(element,mode) {
    if (mode=="in") {
      cursortype = 'hand'
      colorval = '#EBEBEB'
    } else if (mode=="out") {
      cursortype = ''
      colorval = '#FFCC99'
    }
  element.style.background=colorval;
  element.style.cursor=cursortype;
}

  function fnco(element,mode) {
    if (mode=="in") {
      cursortype = 'hand'
      colorval = '#FFE2BD'
    } else if (mode=="out") {
      cursortype = ''
      colorval = '#FFCC99'
    }
  element.style.background=colorval;
  element.style.cursor=cursortype;
}


function NewWindow(url, width, height)
{
 var Win = window.open(url,"NewWindow",'width=' + width + ',height=' + height + ',resizable=1,scrollbars=yes' );
}

function openCal(url,target,op_wid,op_heigh) {
	var address    = url;
	calc = ( window.screen.width / 2) - ( op_wid / 2);
	op_left = calc;
	op_top = 300;
	if (op_left < 10) op_left = 10;
	if (op_top < 10) op_top = 10;
       
	var option     = "top="+op_top+",left="+op_left+",toolbar=0,location=0,directories=0" + 
	",status=0,menubar=0,scrollbars=0,resizable=0,width=" + op_wid + ",height=" + op_heigh;

	if (navigator.appVersion.substring(0,1) == "3")
	{
		window.location.url = url;
	} else {
		var win4 = window.open(address, "", option);
		mani_win = win4;
		mani_win.focus;
	}
}

function openNewWin(url,target,op_wid,op_heigh) {
	var address    = url;
	calc = ( window.screen.width / 8) - ( op_wid / 8);
	op_left = calc;
	op_top = 100;
	if (op_left < 10) op_left = 10;
	if (op_top < 10) op_top = 10;
       
	var option     = "top="+op_top+",left="+op_left+",toolbar=1,location=1,directories=1" + 
	",status=1,menubar=1,scrollbars=1,resizable=1,width=" + op_wid + ",height=" + op_heigh;

	if (navigator.appVersion.substring(0,1) == "3")
	{
		window.location.url = url;
	} else {
		var win4 = window.open(address, "", option);
		mani_win = win4;
		mani_win.focus;
	}
}