
// This page contains global.js code that is used sitewide



// Used for the Frame Gallery window

function openFrameGallery(url) { 
	popWin = window.open(url, '', 'width=625,height=590,status=0,scrollbars=yes,toolbar=no,resizable=yes');
	popWin.focus();

}

// Used for the Order Form window

function openOrderForm(url) { 
	popWin = window.open(url, '', 'width=625,height=520,status=0,scrollbars=yes,toolbar=no,resizable=yes');
	popWin.focus();

}

// This function dynamically creates and writes to a new pop-open window to display an image (not for HTML docs)
// The width and height of the new window are set in the function call. 

function openImgWindow(imgURL, windowName, winWidth, winHeight) {	
	galleryWin = window.open('', '' ,'toolbar=no,resize=yes,scrollbars=no,menubar=no,width=' + winWidth + ',height=' + winHeight);
	galleryWin.document.write("<HTML><HEAD><LINK HREF=\"/css/global.css\" REL=\"stylesheet\" TYPE=\"text/css\"></HEAD><BODY><IMG SRC='" + imgURL + "'></BODY></HTML>");
	galleryWin.document.close();
}


