﻿function OpenPicWin(PicUrl, pageTitle) {
	picWin = window.open('/scriptlibrary/ArtImage.htm?pic=' + PicUrl + '&title=' + pageTitle, 'myWin', 'scrollbars=no, resizable=yes, width=100, height=100, status=no, location=no, toolbar=no');
	picWin.focus();
}

function OpenPic(PicUrl) {
	picWin = window.open(PicUrl, 'myWin', 'scrollbars=no, resizable=yes, width=600; height=450, status=no, location=no, toolbar=no');
	picWin.focus();
}


function SetPicWin() {
 	var xwi;
 	var xhe;
 	var querystring = window.location.search;
 	var xtitle;
 	var xpic;
 	
    xtitle= querystring.split("?");
	xtitle= xtitle[1].split("&");
    xtitle= xtitle[0].substring(4);
    
    myPic.src = xtitle;
 	document.title = xtitle;
 	 	
 	if (myPic.width > window.screen.width) {
 		xwi = window.screen.width;
 	}
 		else {
 		xwi = myPic.width;
 	}
 	
 	if (myPic.height > window.screen.height) {
 		xhe = window.screen.height;
 	}
 		else {
 		xhe = myPic.height;
 	}	
 	 		
 	window.resizeTo(xwi, xhe);
 	document.body.style.margin = '0px 0px 0px 0px';
}

function change_slide() {
	location.href = slide.value;
}



