function submitform() {
	document.form.submit();
}
function searchform() {
	document.searchform.submit();
}

function jumptopage(pg) {
	document.next.page.value=pg;
	document.next.submit();
}

function showwindow(thewidth,theheight,theurl) {
	if (!window.pdWindow) {
		pdWindow = window.open(theurl,"PopOpt","width=" + thewidth + ",height=" + theheight + ",toolbar=0,status=0,location=0,menubar=0,scrollbars=yes,resizable=0");
	}
	else {
		if (!pdWindow.closed) {
			pdWindow.close();
			pdWindow = window.open(theurl,"PopOpt","width=" + thewidth + ",height=" + theheight + ",toolbar=0,status=0,location=0,menubar=0,scrollbars=yes,resizable=0");
		}
		else {
			pdWindow = window.open(theurl,"PopOpt","width=" + thewidth + ",height=" + theheight + ",toolbar=0,status=0,location=0,menubar=0,scrollbars=yes,resizable=0");
		}
	}
}
   
function quickadd(qaid,qaqty) {
	document.quickadd.itemid.value=qaid;
	document.quickadd.qty.value=qaqty;
	document.quickadd.submit();
}
function updateprice() {
	document.form.action = '<%=shopurl & "shop/"%>item.asp';
	document.form.submit();
}
function addtowishlist() {
	document.form.action = '<%=shopurl & "shop/"%>wlistcart.asp';
	document.form.submit();
}
function showimage(thefile) {
	if (!window.popWindow) {
		popWindow = window.open("imageview.asp?file=" + thefile,"View","width=500,height=450,toolbar=0,status=0,location=0,menubar=0,scrollbars=yes,resizable=1");
	}
	else {
		if (!popWindow.closed) {
			popWindow.focus();
			popWindow.location = 'imageview.asp?file=' + thefile;
		}
		else {
			popWindow = window.open("imageview.asp?file=" + thefile,"View","width=500,height=450,toolbar=0,status=0,location=0,menubar=0,scrollbars=yes,resizable=1");
		}
	}
}
function optlinkpopup(thewidth,theheight,theurl) {
	if (!window.poplinkWindow) {
		poplinkWindow = window.open(theurl,"PopOpt","width=" + thewidth + ",height=" + theheight + ",toolbar=0,status=0,location=0,menubar=0,scrollbars=yes,resizable=0");
	} else {
		if (!poplinkWindow.closed) {
			poplinkWindow.close();
			poplinkWindow = window.open(theurl,"PopOpt","width=" + thewidth + ",height=" + theheight + ",toolbar=0,status=0,location=0,menubar=0,scrollbars=yes,resizable=0");
		}
		else {
			poplinkWindow = window.open(theurl,"PopOpt","width=" + thewidth + ",height=" + theheight + ",toolbar=0,status=0,location=0,menubar=0,scrollbars=yes,resizable=0");
		}
	}
}