function genRoll(strImgName,intMode) {
	var h = (intMode == 1)? "_on" : "";
	document.images[strImgName].src = "/images/" + strImgName + h + ".gif";
}

function preloadImg(strImgName,strImgPath)	{
	strImgName = new Image;
	strImgName.src = "/images/" + strImgPath;
}

function NewWindow(filename)
{       window.open(filename,'Plain','menubar=no,location=no,menus=no,scrollbars,resizable=1,status=yes,width=600,height=500');
}

function NewWindowpane(filename)
{       window.open(filename,'Plain','menubar=no,location=no,menus=no,scrollbars,resizable=1,status=yes,width=600,height=500');
}

function NewWindow1(filename)
{       window.open(filename,'Plain','menubar=no,location=no,menus=no,scrollbars,resizable=1,status=yes,width=800,height=300');
}

function OpenWindow(filename)
{       window.open(filename,'Plain','menubar=no,location=no,menus=no,scrollbars,resizable=1,status=yes,width=285,height=400');
}

function OpenWindow1(filename)
{       window.open(filename,'Plain','menubar=no,location=no,menus=no,scrollbars,resizable=1,status=yes,width=490,height=330');
}

function OpenWindow2(filename)
{       window.open(filename,'Plain','menubar=no,location=no,menus=no,scrollbars=no,resizable=1,status=no,width=470,height=365');
}

function OpenWindowASP(filename)
{       window.open(filename,'Plain','menubar=no,location=no,menus=no,scrollbars=no,resizable=1,status=no,width=530,height=480');
}

function OpenWindowPortrait(filename)
{       window.open(filename,'Plain','menubar=no,location=no,menus=no,scrollbars=no,resizable=1,status=no,width=320,height=480');
}

function OpenWindowBnl(filename)
{       window.open(filename,'Plain','menubar=no, toolbar=yes, location=no,menus=no,scrollbars=yes,resizable=1,status=no,width=650,height=550');
}


var win= null;
function NewWindow(mypage,myname,w,h,scroll){
  var winl = (screen.width-w)/2;
  var wint = (screen.height-h)/2;
  var settings  ='height='+h+',';
      settings +='width='+w+',';
      settings +='top='+wint+',';
      settings +='left='+winl+',';
      settings +='scrollbars='+scroll+',';
      settings +='resizable=1'+','+'resizable=0'+','+'personalbar=no';
  win=window.open(mypage,myname,settings);
  if(parseInt(navigator.appVersion) >= 4){win.window.focus();}
}
