var Images=Array();

function Img(name, path) {
	Images[name]=new Image();
	Images[name].src=path;
}

function Change(obj, name) { document.images[obj].src=Images[name].src; }

function _popup(url,width,height,name) {
	if (width==0) { width=screen.width; }
	if (height==0) { height=screen.height; }
	if (name!=true) var rnd = (Math.round((Math.random()*999)+1));
	else { var rnd="x"; }
	var top=Math.floor((screen.height-height)/2);
	var left=Math.floor((screen.width-width)/2);
	window.open(url, "w"+rnd, "top="+top+",left="+left+",width="+width+",height="+height+",buttons=no,scrollbars=no,location=no,menubar=no,resizable=no,status=no,directories=no,toolbar=no");
	void(0);
}
function _popupR(url,width,height,name) {
	if (width==0) { width=screen.width; }
	if (height==0) { height=screen.height; }
	if (name!=true) var rnd = (Math.round((Math.random()*999)+1));
	else { var rnd="x"; }
	var top=Math.round((screen.height-height)/2);
	var left=Math.round((screen.width-width)/2);
	window.open(url, "w"+rnd, "top="+top+",left="+left+",width="+width+",height="+height+",buttons=no,scrollbars=yes,location=no,menubar=no,resizable=yes,status=no,directories=no,toolbar=no");
	void(0);
}

function inputFocus() {
	var item=window.event.srcElement;
	if (document.all) { item.style.borderColor='#4E4938'; }
}
function inputBlur() {
	var item=window.event.srcElement;
	if (document.all) { item.style.borderColor='#B8B8B8'; }
}

function documentLoad(){
	if (document.attachEvent) {
		for (var k=0; k<document.all.tags("INPUT").length; k++) {
			el=document.all.tags("INPUT").item(k);
			el.attachEvent("onfocus", inputFocus);
			el.attachEvent("onblur", inputBlur);
		}
		for (var k=0; k<document.all.tags("TEXTAREA").length; k++) {
			el=document.all.tags("TEXTAREA").item(k);
			el.attachEvent("onfocus", inputFocus);
			el.attachEvent("onblur", inputBlur);
		}
	}
}







