function s_over(name)

{

	if(document.images)

		document.images[name].src = "/img/" + name + "_over.gif";

}		



function s_out(name)

{

	if(document.images)

		document.images[name].src = "/img/" + name + ".gif";

}



function wopen(imgName, w , h, Title)

{

	var wo = window.open("", "abc", "width = " + w + " , height = " + h + ", scrollbars=0, status=0");

	wo.document.open();

	var win = "";

	win = "<html><head><title>";

	win += Title;

	win += "</title></head>"

	win += "<body bgcolor='#ffffff' leftmargin='0' topmargin='0' rightmargin='0' bottommargin='0' marginwidth='0' marginheight='0'>";

	win += "<table cellpadding='0' cellspacing='0' border='0' width='100%' height='100%'><tr><td align='center'>";

	win += "<a href='#' onClick='self.window.close();'><img src='" + imgName + "' width='" + w + "' height='" + h + "' border='0' alt='" + Title + "'></a>";

	win += "</td></tr></table>";

	win += "</body></html>";

	w += 40;

	h += 58;

	wo.window.resizeTo(w, h);

	wo.document.write(win);

	wo.window.focus();

	wo.document.close();	

}


function changeState(obj, id){
	var oRoot = document.getElementById(id);
	var sSrc;
	if (obj.title == 'hide'){
		oRoot.style.display = 'none';
		obj.title = 'show';
		if (obj.src.indexOf('nlast') > -1)
			sSrc = '/img/pnlastnode';
		else
			sSrc = '/img/plastnode';
		if (obj.src.indexOf('active') > -1)
			sSrc = sSrc + '_active.gif';
		else
			sSrc = sSrc + '.gif';
		obj.src = sSrc;
		obj.nextSibling.src = '/img/folder_chb.gif';
	}
	else{
		oRoot.style.display = 'block';
		obj.title = 'hide';
		if (obj.src.indexOf('nlast') > -1)
			sSrc = '/img/mnlastnode';
		else
			sSrc = '/img/mlastnode';
		if (obj.src.indexOf('active') > -1)
			sSrc = sSrc + '_active.gif';
		else
			sSrc = sSrc + '.gif';
		obj.src = sSrc;
		obj.nextSibling.src = '/img/folder_active.gif';
	}
}
function wopen3 (obj){
 var wo = window.open("", "abc", "width=10, height=10, scrollbars=0, status=0");
 wo.document.open();
 var win = "";
 win = "<html><head>";
 win += "<title>Image</title>";
 win += "<script>function resizes (obj){";
 win += "var w=obj.width, h=obj.height;";
 win += "window.resizeTo (w+10, h+46);";
 win += "}</"+"script"+">";
 win += "<style type='text/css'> * {margin:0; padding:0; border:0; } </style> </head>"
 win += "<body>";
 win += "<table cellpadding='0' cellspacing='0' width='100%' height='100%'><tr><td align='center'>";
 win += "<img src='" + obj + "' alt='' onload='resizes(this)' />";
 win += "</td></tr></table>";
 win += "</body></html>";
 wo.document.write(win);
 wo.window.focus();
 wo.document.close();
}
