﻿var axel = Math.random() + "";
var ord = axel * 1000000000000000000;

function Run() {
}

function PopUpWindow(page, window_name, window_width, window_height, window_features) {
    window_features = window_features + ", width=" + window_width + ", height=" + window_height;
    //document.CtrlWindow.close;
    OpenWin = window.open(page, window_name, window_features);
}

function PrintPopUp(page) {
    PopUpWindow(page, 'Print', 700, 600, 'toolbar=yes,menubar=yes,location=no,scrollbars=yes,resizable=yes');
}

function NotePopUp(page) {
    PopUpWindow(page, 'Note', 600, 450, 'toolbar=yes,menubar=yes,location=no,scrollbars=yes,resizable=yes');
}

function VirtualTourPopUp() {
    PopUpWindow(pathRoot + 'VirtualTour/', 'VirtualTour', 1070, 800, 'toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes');
}

function ArticleImageViewer(titleEntryName, imageID, channelEntryName) {
    PopUpWindow(pathRoot + 'Channel/' + channelEntryName + '/Articles/Images/' + titleEntryName + '/' + imageID + '.aspx', 'ArticleImage', 950, 670, 'toolbar=no,menubar=no,location=no,scrollbars=no,resizable=no');
}

function NewsImageViewer(titleEntryName, imageID, channelEntryName) {
    PopUpWindow(pathRoot + 'Channel/' + channelEntryName + '/News/Images/' + titleEntryName + '/' + imageID + '.aspx', 'NewsImage', 950, 670, 'toolbar=no,menubar=no,location=no,scrollbars=no,resizable=no');
}

function ProductImageViewer(titleEntryName, imageID, channelEntryName) {
    PopUpWindow(pathRoot + 'Channel/' + channelEntryName + '/Products/Images/' + titleEntryName + '/' + imageID + '.aspx', 'ProductImage', 950, 670, 'toolbar=no,menubar=no,location=no,scrollbars=no,resizable=no');
}

function PhotoGalleryImageViewer(id) {
    PopUpWindow(pathRoot + 'PhotoGallery/ImageViewer.aspx?id=' + id, 'PhotoGalleryImage', 950, 670, 'toolbar=no,menubar=no,location=no,scrollbars=no,resizable=no');
}

function BlogPostImageViewer(titleEntryName, imageID, blogEntryName) {
    PopUpWindow(pathRoot + 'Blog/' + blogEntryName + '/Images/' + titleEntryName + '/' + imageID + '.aspx', 'BlogPostImage', 950, 670, 'toolbar=no,menubar=no,location=no,scrollbars=no,resizable=no');
}
