function cimg(name,ov){
	if (document.images[name]){
		document.images[name].src = "images/" + name + ((ov == 0)?"over":"") + ".gif";
	}
	
}
function cimg2(name,ov){
	if (document.images[name]){
		document.images[name].src = "images/" + name + ((ov == 0)?"over":"") + ".jpg";
	}
	
}
function MM_preloadImages() {
		  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
		    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
		    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
		}

function popup(url, title, W, H, features){
	var X = Math.ceil((window.screen.availWidth - W) / 2);
	var Y = Math.ceil((window.screen.availHeight - H) / 2);
	features = "width=" + W + ", height=" + H + ", left=" + X + ", top=" + Y + ", " + features;
	window.open(url, title, features);
}

function goResize() {
	var tab = document.getElementById("test");
	var new_width = tab.scrollWidth + 30;
	var new_height = tab.scrollHeight + 40;
	if (new_height > 650) {
		new_height = 650;
	}
	window.resizeTo(new_width,new_height);
	var X = Math.ceil((window.screen.availWidth - document.body.clientWidth) / 2);
	var Y = Math.ceil((window.screen.availHeight - document.body.clientHeight) / 2);
	window.moveTo(X,Y);
	window.print();
}