<!-- // Form validation (iXL) authored by Idoia Lerchundi for iXL (UK) Ltd.
function BrowserCheck() {
	var browser = navigator.appName;
	// browsers defined are netscape and ie only
	if (browser=="Netscape") {
		this.browser = "ns";
	} else if (browser=="Microsoft Internet Explorer") {
		this.browser = "ie";
	} else {
		this.browser = browser;
	}
	
	if (navigator.appVersion.indexOf("Mac") != -1) {
		this.platform = "mac";
    } else {
		this.platform = "pc";
	}
	this.mac = (this.platform=="mac");
	this.pc = (this.platform=="pc");
	
	// version tell the exact version
	this.vers = parseInt(navigator.appVersion);
	// ie3/ns3 and lower
	this.ns3 =(this.browser=="ns" && this.vers<=3);
	this.ie3 = (this.browser=="ie" && this.vers<=3);
	// ns/4/5 ie/4/5 are 4 plus browsers
	this.ns = (this.browser=="ns" && this.vers>=4);
	this.ns4 = (this.browser=="ns" && this.vers==4);
	this.ns5 = (this.browser=="ns" && this.vers==5);
	this.ie = (this.browser=="ie" && this.vers>=4);
	this.ie4 = (navigator.userAgent.indexOf('MSIE 4')>0);
	this.ie5 = (navigator.userAgent.indexOf('MSIE 5')>0);
	if (this.ie5) {
		this.vers = 5;
	}
}
is = new BrowserCheck();

if (is.pc){
	if (is.browser == "ns") {
		document.write("<link rel='stylesheet' type='text/css' href='../../repanet/styles/nn.css'>");
	} else if (is.browser == "ie") {
		document.write("<link rel='stylesheet' type='text/css' href='../../repanet/styles/ie.css'>");
	} else {
		document.write("<link rel='stylesheet' type='text/css' href='../../repanet/styles/gen.css'>");
	}
} else if (is.mac) {
	if (is.browser == "ns") {
		document.write("<link rel='stylesheet' type='text/css' href='../../repanet/styles/nn_mac.css'>");
	} else if (is.browser == "ie") {
		document.write("<link rel='stylesheet' type='text/css' href='../../repanet/styles/ie_mac.css'>");
	} else {
		document.write("<link rel='stylesheet' type='text/css' href='../../repanet/styles/gen.css'>");
	}
} else {
	document.write("<link rel='stylesheet' type='text/css' href='../../repanet/styles/gen.css'>");
}


function nnRoll(what,href,linktext,color) {
// code removed. function call retained for legacy compatibility reasons.   -=[fs]=-
//     if (document.layers) {
//         var text = '<A HREF="' + href  +'" class="mt">' +
//                    '<FONT SIZE="60%" FACE="Verdana" COLOR="' + color + '">' +
//                    linktext + '<\/FONT><\/A>'
//         what.document.open();
//         what.document.write(text);
//         what.document.close();
//     }
 }

 function msieRoll(what,color) {
     if (document.all)
		 // don't do rollover on highlighted right-hand nav links
		if (what.className != "CSactiveInt")
		{
			 what.style.color=color;
			 //what.style.fontweight='bold';
		}
 }

function preload(imgName,imgSrc) {
	if (document.images) {
		eval(imgName+' = new Image()')
		eval(imgName+'.src = "'+imgSrc+'"')
	}
	
	}
	
function changeOn(name, imgName){
        if (document.images){
                document.images[imgName].src = eval(name+".src")
                window.status='';
        }
        return(true);
}
 
 
function notNull(str) {
	if (str.length == 0) {
		 alert("Please try to login again.");
		 return false;
	} 
	return true;
}

function checkLogin() {
 if (!notNull(document.login.username.value)) {
  return false;
 }
 
 if (!notNull(document.login.password.value)) {
  return false;
 }
 
  return true;
 }

 // -->	
