function imageBrowser(itemNum, imgDIR, category, location) {

	window.open("/cgi-bin/imageBrowser.pl?item="+itemNum+"&imgDIR="+imgDIR+"&category=" + category + "&l="+ location,"imageBrowser","width=" + screen.width + ", height=" + screen.height + ", scrollbars=yes, resizable=yes");

}


function changeImage(imgLocation) {

	document.large.src = imgLocation;

}

function addProduct(Product_Code, Store_Code, Category_Code, Screen) {

	addwindow = window.open("/Merchant2/merchant.mv?Screen=" + Screen + "&Store_Code=" + Store_Code + "&Product_Code=" + Product_Code + "&Category_Code=" + Category_Code,"addWindow", "width=1000, height=560, resizable=yes, scrollable=yes")

//<input type=hidden name=Screen value='PROD'><input type=hidden name=Store_Code value=AQL><input type=hidden name=Product_Code value='$item'><input type=hidden name=Category_Code value=LAND>

}

function loadWin(source, size) {

	if (size == "small") {
		pupWin = window.open(source,"pupWin", "width=300, height=200, resizable=yes, scrollbars=no, status=no");
	}
	if (size == "medium") {
		pupWin = window.open(source,"pupWin", "width=550, height=400, resizable=yes, scrollbars=yes");
	}
	if (size == "large") {
		pupWin = window.open(source,"pupWin", "width=780, height=580, resizable=yes, scrollbars=yes");
	}
	if (size == "full" || size == "fullscreen") {
		pupWin = window.open(source,"pupWin", "width=" + screen.width + ", height=" + screen.height + ", scrollbars=yes, resizable=yes");
	}

}