function cngbg3(obj1,nc1){
	var objv1=document.getElementById(obj1);	
	if(objv1){
		objv1.nc1=objv1.className;
		objv1.className=nc1;		
	}

}
function cngbg4(obj1,nc1){
	var objv1=document.getElementById(obj1);	
	if(objv1){
		objv1.nc1=objv1.className;
		objv1.className=nc1;		
	}
	objv1.onmouseout=function(){ this.className=this.nc1; }
}
var newwindow;
function poptastic(hisname,patho,mywidth)
		{
		newwindow=window.open("blank.html",hisname,'height=500,width='+mywidth+',scrollbars=no,toolbar=0,menubar=0,status=no,directories=no,');
		if (window.focus) {newwindow.focus()}
			newwindow.document.style
			newwindow.document.write('<html><head><script>'+moo.toString()+'</script></head><body onload="moo('+mywidth+');" bgcolor="#ffffff" style="margin:3px;"><table border="0" cellspacing="0" cellpadding="0"><tr><td valign="top"><img vspace="10" id="imgpopi" align="absmiddle"  src="'+patho+'"  border="0"/></td></tr></table><div id="markpos" style="position:relative;top:0px;"></div></body></html>');
			newwindow.document.close();
		}
function moo(mywidth) { 
	var obj2=document.getElementById('markpos');
	//alert(obj2.offsetTop);
	window.resizeTo(mywidth,(obj2.offsetTop+65));
}

function poptastic2(hisname,patho)
		{
		newwindow=window.open("blank.html",hisname,'height=800,width=850,scrollbars=yes,toolbar=0,menubar=0,status=no,directories=no,');
		if (window.focus) {newwindow.focus()}
			newwindow.document.style
			newwindow.document.write('<html><head><script>'+moo.toString()+'</script></head><body onload="moo(850);"  bgcolor="#ffffff" style="margin:3px;"><table width="100%" border="0" cellspacing="0" cellpadding="0" align="center"><tr><td valign="top" align="center"><img vspace="10" id="imgpopi" align="absmiddle"  src="'+patho+'"  border="0"/></td></tr></table><div id="markpos" style="position:relative;top:0px;"></div></body></html>');
			newwindow.document.close();
		}