<!--- Javascript --->
function cOn(td,c){
	if(document.getElementById||(document.all && !(document.getElementById))){
	td.style.backgroundColor=c;
	}
	}
	
	function cOut(td,c){
	if(document.getElementById||(document.all && !(document.getElementById))){
	td.style.backgroundColor=c;
	}
	}
	
function elem_len(f,elem){
	var e_len = document.forms[f].elements[elem].value.length;
	var result = true;
	if (e_len <= 0){
		result = false;
		}
	return result;
	}
	
function popwin(u,w,h,s,m,t){
	p = "width=" + w + ",height=" + h +  ",scrollbars=" + s + ",menubar=" + m + ",toolbar=" + t;
	psdcwin=window.open(u,"psdcwin",p);
	}

function centerWin(w,h){
	var windowX = (screen.width/2)-(w/2);
    var windowY = (screen.height/2)-(h/2);
    self.moveTo(windowX,windowY);
	}
	
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) {
		img_home = newImage("_i/menu/menu_home_ro.gif");
		img_about = newImage("_i/menu/menu_about_ro.gif");
		img_products = newImage("_i/menu/menu_products_ro.gif");
		img_clients = newImage("_i/menu/menu_clients_ro.gif");
		preloadFlag = true;
	}
}

PreloadImages();
