function preloadImages() { //v1.2
  if (document.images) {
    var imgFiles = new Array();

    imgFiles[0]= 'Images/h1r_02.gif';
    imgFiles[1]= 'Images/h1r_03.GIF';
    imgFiles[2]= 'Images/h1r_04.GIF';
    imgFiles[3]= 'Images/h1r_05.GIF';
    imgFiles[4]= 'Images/h1r_06.GIF';
    imgFiles[5]= 'Images/h1r_07.GIF';
    imgFiles[6]= 'Images/h1r_08.GIF';
    imgFiles[7]= 'Images/h1r_09.gif';

    imgFiles[8]= 'Images/h1_02.gif';
    imgFiles[9]= 'Images/h1_03.GIF';
    imgFiles[10]= 'Images/h1_04.GIF';
    imgFiles[11]= 'Images/h1_05.GIF';
    imgFiles[12]= 'Images/h1_06.GIF';
    imgFiles[13]= 'Images/h1_07.GIF';
    imgFiles[14]= 'Images/h1_08.GIF';
    imgFiles[15]= 'Images/h1_09.gif';
    
    //var imgFiles = MM_preloadImages.arguments;
    var preloadArray = new Array();
    for (var i=0; i<imgFiles.length; i++) {
      preloadArray[i] = new Image;
      preloadArray[i].src = imgFiles[i];
    }
  }
}
function ch1()
{
args = ch1.arguments;
	if (navigator.appName == 'Netscape' && document.images != null) {
	theObj = eval('document.images[' + args[0] + ']');
	theObj.src = args[2];
	} else if (document.all != null) { //IE
	theObj = eval('document.all[' + args[1] +']');
	theObj.src = args[2];
}
}
function re1()
{
args = re1.arguments;
	if (navigator.appName == 'Netscape' && document.images != null) {
	theObj = eval('document.images[' + args[0] + ']');
	theObj.src = args[2];
	} else if (document.all != null) { //IE
	theObj = eval('document.all[' + args[1] +']');
	theObj.src = args[2];
}
}

function validate()
{
var userName;
var passWord;

var len;
var i;
var temp;

userName= new String(document.frmPwd.uid.value);
passWord= new String(document.frmPwd.pwd.value);


	if (userName.length > 1)
	{
		while (userName.charAt(0) == " ")
			  {
			  userName = new String(userName.substring(1,userName.length));
			  }
    	}

	if (userName.length < 1)
	{
	alert("Please enter User ID" );
	document.frmPwd.uid.focus();
	return false;
	} 

	if (passWord.length > 1)
	{
		while (passWord.charAt(0) == " ")
			  {
			  passWord = new String(passWord.substring(1,passWord.length));
			  }
    	}

	if (passWord.length < 1)
	{
	alert("Please enter password" );
	document.frmPwd.pwd.focus();
	return false;
	} 

	return true;
}

function MM_showHideLayers() { //v3.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v; }
}

function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}