
function ClientSelector(){
var URL = document.options.select.options[document.options.select.selectedIndex].value;
top.location.href = URL;
}


function open_window(file,w,h,tbar,loc,dir,stat,menu,scroll,resize) {
		JavaScript:window.open(file, '','toolbar='+tbar+',location='+loc+',directories='+dir+',status='+stat+',menubar='+menu+',scrollbars='+scroll+',resizable='+resize+',width='+w+',height='+h);
}

function chart(url) {
  window.open(url, 'chart', 'height=330,width=730,location=0,toolbar=0,scrollbars=1,status=1,resizable=0,menubar=1,left=0,top=0');
}

function isEmail(elm)
	{
	if (elm.value.indexOf("@") + "" != "-1" &&
		elm.value.indexOf(".") + "" != "-1" &&
		elm.value != "")
	return true;
	else return false;
	}

function isFilled(elm) {
	if (elm.value == "" ||
		elm.value == null)
	return false;
	else return true;
	}

function isReady(form) {

    if (isFilled(form.realname) == false) {
    	alert("Please enter a name.");	
    	form.realname.focus();
    	return false;
    	}

    if (isEmail(form.email) == false) {
		alert("Please enter your correct email address.");
		form.email.focus();
		return false;
		}


}



function init() {
	preloadImages();
	redrawInit();
	theObj = getObject(newsId);
	if (n) {
		ymin = (theObj.clip.height - newsHeight) * -1;
	} else {
		styleObj = "";
		theObj = getObject(newsId);
		ymin = (theObj.offsetHeight - newsHeight) * -1;
		styleObj = ".style";
	}
}


function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function changeImages() {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}

var preloadFlag = false;
function preloadImages() {
	if (document.images) {
		tnav_ro_01_over = newImage("images/tnav_ro_01_over.gif");
		tnav_ro_01tnav_ro_05_up = newImage("images/tnav_ro_01tnav_ro_05_up.gif");
		tnav_ro_02_over = newImage("images/tnav_ro_02_over.gif");
		tnav_ro_03_over = newImage("images/tnav_ro_03_over.gif");
		tnav_ro_04_over = newImage("images/tnav_ro_04_over.gif");
		tnav_ro_05_over = newImage("images/tnav_ro_05_over.gif");
		tnav_ro_06_over = newImage("images/tnav_ro_06_over.gif");
		tnav_ro_07_over = newImage("images/tnav_ro_07_over.gif");
		preloadFlag = true;
	}
}


