function changeClass(item_id, new_class) {
	var obj=document.getElementById(item_id);
	obj.className=new_class;
}

/*Img rollover function*/
function rollover(name,source){
    document.images[name].src=source;
}
function popup(theURL) {

    var centerX = 10;
    var centerY = 10;

        windowprops = "top=" + centerY + ",left=" + centerX + ",resizable=no" + ",width=500,height=500";

        window.open(theURL, "Details", windowprops);
}

function popup(w,h,theURL) {

    var centerX = 10;
    var centerY = 10;

        windowprops = "top=" + centerY + ",left=" + centerX + ",scrollbars=yes,resizable=no" + ",width="+w+",height="+h;

        window.open(theURL, "Details", windowprops);
}

function DynaWin_old(url, h, w, l, t) {
poph = + h + 70;
popw = + w + 30;
disp = window.open("","pop","height=" + poph + ",width=" + popw + ",left=" + l + ",top=" + t + "");
content = '<HTML>';
content += '<TITLE>Pop-up Window</TITLE>';
content += '<style type="text/css">* {font-family: sans-serif,arial;}</style>';
content += '</HEAD>';
content += '<BODY BACKGROUND="bk.gif" onBlur="self.close()">';
content += '<P ALIGN="CENTER"><img src="' + url + '" height="' + h + '" width="' + w + '"></P>';
content += '<link REL=stylesheet HREF="popup.css" TYPE="text/css"><CENTER><A HREF="#" onClick="self.close()" class="link2">Close Window</A> </font>';
content += '</BODY></HTML>';
disp.document.write(content);
disp.document.close();
}

function DynaWin(url, h, w, l, t) {
poph = + h + 70;
popw = + w + 30;

        windowprops = "top=" + t + ",left=" + l + ",scrollbars=no,resizable=no" + ",width="+popw+",height="+poph;

        mywin = window.open(url, "Details", windowprops);
	mywin.document.write('<CENTER><img src="'+url+'"/><br/><br/><A HREF="#" onClick="self.close()" class="link2">Close Window</A></CENTER>');
}

