﻿// JScript File

function AlternateItem(obj, bg){
    try{
        if (bg.length > 0)
            obj.style.background = "url(\"" + bg + "\") repeat-x";
    }
    catch (ex){
        return false;
    }
}

function GotoUrl(href, target_win) {
	try {
		if (target_win) {
			target_win.location = href;
		}
		else {
			window.location = href;
		}
	}
	catch (ex) {
		return false;
	}
}

function ReloadWindow(target_win) {
	try {
		if (target_win) {
			target_win.location.reload();
		}
		else {
			window.location.reload();
		}
	} 
	catch (ex) {
		return false;
	}
}