﻿function unFrame() {
    if (self != top)
        top.location.href = self.location.href;
}
function fnLoadNewWindow(strUrl) {
    window.open(strUrl, null, "resizeable=1, scrollbars=1,status=no, toolbar=no, menubar=no, location=no");
}
function openWindow(url, name, attributes) {
    window.open(url, name, attributes);
}

function legalWarn(sitetogo) {
    var warn = "You will be leaving our web site. Linked web sites are \n"
		+ "not under our control and we are not responsible for \n"
		+ "the contents of any linked site or any link contained \n"
		+ "in the linked site. We do not endorse or guarantee and \n"
		+ "are not responsible for the failure of the products, \n"
		+ "information or recommendations provided by linked \n"
		+ "sites. Linked sites may provide less security and may \n"
		+ "have a privacy policy different from our own. \n";
    if (confirm(warn)) {
        top.location = sitetogo;
    }
}

function disable_enter() {
    if (window.event.keyCode == 13) {
        event.returnValue = false;
        event.cancel = true;
    }
}

function move_in(img_name, img_src) {
    //document.images.namedItem(img_name).src=img_src;    
    document.images["ctl00_" + img_name].src = img_src;
}
function move_out(img_name, img_src) {
    //document.images.namedItem(img_name).src=img_src;
    document.images["ctl00_" + img_name].src = img_src;
}
