   if ( top != self )
   {
       top.location.href = unescape(window.location.pathname);
   }
    
function showlayers(theLayer){ 
if (document.getElementById) { // if it's IE5 or NS6 use this syntax to access the visiblity attribute 
eval('document.getElementById(\"' + theLayer + '\").style.visibility = "visible"') 
} 
if(document.layers) { // if it's NS4 use this syntax to access the visiblity attribute 
eval('document.layers[\"' + theLayer + '\"].visibility = "visible"') 
} 
if (document.all) { // if it's IE4 use this syntax to access the visiblity attribute 
eval(theLayer + '.style.visibility = "visible"') 
} 
} 

function hidelayers(theLayer){ 
if (document.getElementById) { // if it's IE5 or NS6 use this syntax to access the visiblity attribute 
eval('document.getElementById(\"' + theLayer + '\").style.visibility = "hidden"') 
} 
if(document.layers) { // if it's NS4 use this syntax to access the visiblity attribute 
eval('document.layers[\"' + theLayer + '\"].visibility = "hidden"') 
} 
if (document.all) { // if it's IE4 use this syntax to access the visiblity attribute 
eval(theLayer + '.style.visibility = "hidden"') 
}  
} 

function donothing(){} 

 function cOn(roll){
 if (document.getElementById){
 roll.style.backgroundColor="#DCE5F6";
 }
 }
 function cOut(roll){
if (document.getElementById){
 roll.style.backgroundColor="";
 }
 }

var win6 = null;
function NewWindow(mypage,myname,w,h){
{
if (win6 && !win6.closed) win6.close();
openit5(mypage,myname,w,h);
}
}
function openit5(mypage,myname,w,h){
var t = ((self.screen.availHeight/2) - (h/2));
var l = ((self.screen.availWidth/2) - (w/2));
settings ='width=' + w + ',height=' + h + ',left=' + l + ',top=' + t + ',toolbar=no,border=0,location=no,directories=no,status=yes,menubar=no,scrollbars=no,copyhistory=yes,resizable=yes,dependent=yes'
win6 = window.open(mypage,myname,settings);
}

function checkrequired(which){
var pass=true;
if (document.images){
for (i=0;i<which.length;i++){
var tempobj=which.elements[i]
if (tempobj.name.substring(0,3)=="req"){
if (((tempobj.type=="text"||tempobj.type=="textarea")&&tempobj.value=='')||(tempobj.type.toString().charAt(0)=="s"&&tempobj.selectedIndex==-1)){
pass=false;
break;
}
}
if (tempobj.name.substring(0,6)=="reqnum"){
if (((tempobj.type=="text"||tempobj.type=="textarea")&&tempobj.value=='')||(tempobj.type.toString().charAt(0)=="s"&&tempobj.selectedIndex==-1)||(parseInt(tempobj.value) != tempobj.value)){
pass=false;
break;
}
}
}
}
if (!pass){
	alert("Please enter all required details.\nPlease use numeric values for all numbers.\n\(Required fields are marked with an asterix\).");
	return false;
} else {return true;}
}


var tipb = new Array(6) ;
tipb[0] = "n1";
tipb[1] = "n7";
tipb[2] = "n3";
tipb[3] = "n4";
tipb[4] = "n1";
tipb[5] = "n6";


var tipa = new Array(6) ;
tipa[0] = "n2";
tipa[1] = "n8";
tipa[2] = "n9";
tipa[3] = "n10";
tipa[4] = "n8";
tipa[5] = "n12";

var tip1 = new Array(6) ;
tip1[0] = "n13";
tip1[1] = "n14";
tip1[2] = "n15";
tip1[3] = "n16";
tip1[4] = "n5";
tip1[5] = "n11";

// tip1[0] = "computer1";
// tip1[1] = "computer16";
// tip1[2] = "computer13";
// tip1[3] = "computer3";
// tip1[4] = "computer7";
// tip1[5] = "news";

var now = new Date();
var sec = now.getSeconds();
var sec2 = sec % 6 ;
var sec3 = sec % 10 ;
GID1 = "<img src='../../images/" + tip1[sec % 6] + ".gif' vspace='0' width='103' height='83' alt='Netaca Images' border='1' align='absmiddle'>" ; 
GID2 = "<img src='../../images/" + tipa[sec2 % 6] + ".gif' vspace='0' width='103' height='83' alt='Netaca Images' border='1' align='absmiddle'>" ; 
GID3 = "<img src='../../images/" + tipb[sec3 % 6] + ".gif' vspace='0' width='103' height='83' alt='Netaca Images' border='1' align='absmiddle'>" ; 


var ie5 = (document.all && document.getElementById);
var netscape6 = (!document.all && document.getElementById);

fade= Math.floor(Math.random()*tip1.length);
fade= Math.floor(Math.random()*tipa.length);
fade= Math.floor(Math.random()*tipb.length);

opacity1=0 ;
opacity2=0 ;
opacity3=0 ;


function display4(){
if(ie5) document.getElementById('fading1').filters.alpha.opacity = opacity1;
if(netscape6) document.getElementById('fading1').style.MozOpacity = opacity1 + '%';
if (opacity1<100) {
opacity1+=2
setTimeout("display4()",100);
}
}

function display1(){
if(ie5) document.getElementById('fading2').filters.alpha.opacity = opacity2;
if(netscape6) document.getElementById('fading2').style.MozOpacity = opacity2 + '%';
if (opacity2<100) {
opacity2+=2
setTimeout("display1()",50);
}
}
function display2(){
if(ie5) document.getElementById('fading3').filters.alpha.opacity = opacity3;
if(netscape6) document.getElementById('fading3').style.MozOpacity = opacity3 + '%';
if (opacity3<100) {
opacity3+=2
setTimeout("display2()",10);
}
}