
function pviiClassNew(obj, new_style) 
{
  obj.className=new_style;
}

//Image Rotator Script

var theImages = new Array()

theImages[0] = 'ac1.jpg'
theImages[1] = 'heli1.jpg'
theImages[2] = 'ac2.jpg'
theImages[3] = 'heli2.jpg'
theImages[4] = 'ac3.jpg'
theImages[5] = 'heli3.jpg'
theImages[6] = 'heli4.jpg'


var j = 0
var p = theImages.length;
var preBuffer = new Array()
for (i = 0; i < p; i++){
   preBuffer[i] = new Image()
   preBuffer[i].src = theImages[i]
}
var whichImage = Math.round(Math.random()*(p-1));
function showImage(){
document.write('<img src="../newimages/'+theImages[whichImage]+'" width="270" height="163" border="0" alt="" vspace="3">');

}

function forgotPwd()
		{
			window.open("http://ctsys.com/aspx/common/forgot_password.aspx","pwd","width=650,height=450,top=10,left=50%,scrollbars=no,menubar=no,location=no");
		}

function openWindow(newPage) {
        winStats='toolbar=no,location=no,directories=no,menubar=no,'
        winStats+='scrollbars=no,width=700,height=525'
        if (navigator.appName.indexOf("Microsoft")>=0) {
           winStats+=',left=10,top=25'
          }else{
          winStats+=',screenX=10,screenY=25'
         }
         window.open(newPage,"",winStats) 
       }
function haimap()
		{
			window.open("http://www.ctsys.com/map.html", "hai", "width=525,height=450,scrollbars=no,menubar=no,location=no");
		}
