function ShowVideo(inID) {
    var URL2 = "/videowindow.aspx?id=" + inID;

    LeftPosition = (screen.width) ? (screen.width - 480) / 2 : 0;
    TopPosition = (screen.height) ? (screen.height - 385) / 2 : 0;

    var dWin = window.open(URL2, '_drwin', 'left=' + LeftPosition + ',top=' + TopPosition + ',resizable=no,scrollbars=no,toolbar=no,location=no,directories=no,status=no,menubar=no,width=480,height=385');
    dWin.focus();
}

function ShowVideo2(propertyId, sceneId, contentId, templateId) {
    var url = 'http://mediaserver.vrxstudios.com/flash/app/vrxflashpresentation.htm?id=' + 
    propertyId  + '.' +
    sceneId + '.' +
    contentId + '&amp;' +
    'template=' + templateId + '&amp;package=0&amp;locale=en-US&amp;show=all&amp;viewlevel=&amp;width=572&amp;height=625';

    //* 'http://mediaserver.vrxstudios.com/flash/app/vrxflashpresentation.htm?id=712.4733.44803&amp;template=253&amp;package=0&amp;locale=en-US&amp;show=all&amp;viewlevel=&amp;width=572&amp;height=625'

    var popup = window.open(url, 'name', 'height=625,width=572,toolbar=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes');
    popup.focus();
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
	window.open(theURL,winName,features);
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
    if (init == true) with (navigator) {
        if ((appName == "Netscape") && (parseInt(appVersion) == 4)) {
            document.MM_pgW = innerWidth; document.MM_pgH = innerHeight; onresize = MM_reloadPage;
        } 
    }
    else if (innerWidth != document.MM_pgW || innerHeight != document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function showpano(id) {
    settings = 'width=370,height=480,top=5,left=5,scrollbars=no,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=yes';
    var win = window.open('http://display.maxvr.com/windstar/viewer.asp?id=' + id, 'maxvrviewer', settings);
    win.focus();
}

function toggleDisplay(id) {
    var style = $get(id).style;
    style.display = style.display == "none" ? "block" : "none";
}

function CheckNumericValues(evt) {
    evt = (null == evt) ? event : evt;
    var code = evt.keyCode;
    if (code == 0)
        code = evt.charCode;
    if ((code >= '48' && code <= '57') || code == '8' || code == '46') //8-backspace, 46-delete
        return true;
    else
        return false;
}
