// Javascripts communs, par Studios ArtMedia

// POP-UP WINDOW GENERATOR FUNCTION 1.0 (simplified)
var winCount=0;
function PopUp(page,winWidth,winHeight,scrolls,winID){
	// Initialization Block
		var winWidth, winHeight, scrolls, winID;
		if (winID == "undefined" || winID == null) {
			winCount++;	// Auto-increment winID
			var winID = "popup" + winCount;
		}
		if (scrolls == null) scrolls=1;	// Scroll specification is optional
		if (winWidth == null || isNaN(winWidth)) winWidth=350;	// Default window size
		if (winHeight == null || isNaN(winHeight)) winHeight=350;

	// Generating window
		window.open(page,winID,"width=" + winWidth + ",height=" + winHeight + ",location=0,toolbar=0,directories=0,status=0,menubar=0,scrollbars=" + scrolls + ", resizable=0,top=120,left=50");
}