function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function changeImages() {
	if (document.images ) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}


function imagePopupWH(url, w, h) { 
    //for cm
    w=parseInt(w); h=parseInt(h);
	window.open('/imagepopup.aspx?imageurl='+escape(url),'imagepopup','width='+w+',height='+h+',scrollbars=no,status=no,menubar=no');
}




function goto(page) {
	document.location.href=page
}
function cls(x) {
	x.className=x.className.replace('_over','')
}
function clsn(x,c) {
	x.className=c
}
function clso(x) {
	x.className+='_over'
}
