/* Rollover */

function smartRollover() {
    if(document.getElementsByTagName) {
        var images = document.getElementsByTagName("img");
        for(var i=0; i < images.length; i++) {
            if(images[i].getAttribute("src").match("_off."))
            {
                images[i].onmouseover = function() {
                    this.setAttribute("src", this.getAttribute("src").replace("_off.", "_on."));
                }
                images[i].onmouseout = function() {
                    this.setAttribute("src", this.getAttribute("src").replace("_on.", "_off."));
                }
            }
        }
    }
}
if(window.addEventListener) {
    window.addEventListener("load", smartRollover, false);
}
else if(window.attachEvent) {
    window.attachEvent("onload", smartRollover);
}



/* OpenWindow */

	var Win=null;
	var url="";
	function OpenWin(url){
		Win=window.open(url,"dtl","width=600,height=400,toolbar=0,location=0,directories=0,status=yes,menubar=0,scrollbars=1,resizable=no");Win.focus();
		}


function Winopen(win,wi,he){
var newWin=window.open(win, 'Sub', "toolbar=no , menubar=no , scrollbars=yes , width=" +wi+" , height=" +he);
newWin.resizeTo(wi,he);
newWin.focus();
}