function menu_hover(menuitem) {
	menuitem2 = menuitem * 11;
	document.getElementById(menuitem).src = "images/sing_line1.gif"; 
	if (menuitem !=1 && menuitem != 0) { document.getElementById(menuitem2).src = "images/sing_line1.gif"; }
}
function menu_out(menuitem) { 
	menuitem2 = menuitem * 11;
	document.getElementById(menuitem).src = "images/sing_line2.gif" 
	if (menuitem !=1 && menuitem != 0) { document.getElementById(menuitem2).src = "images/sing_line2.gif"; }
}
function go_ups() {
	open("ups.asp","editWin","width=350,height=440,scrollbars=no,menubar=no");
}
function delThisJob(jobID) {
	theURL = "job_ops_del.asp?jobID=" + jobID;
	window.location = theURL;
}
function delThisSpecial(xID) {
	theURL = "web_special_del.asp?xID=" + xID;
	window.location = theURL;
}
function trashItem(itemID) {
	theURL = "product_table_del.asp?itemID=" + itemID;
	window.location = theURL;
}
function pickDate(Src){
	window.open("calendar.aspx?src=" + Src, "_blank",    "height=260, width=250, left=100, top=100, " +   "location=no, menubar=no, resizable=no, " +   "scrollbars=no, titlebar=no, toolbar=no", true) ;
}
function goForm() {

	theURL = "web_specials_save_new.asp?item=" + document.newForm.item.value;
	theURL = theURL + "&model=" + document.newForm.model.value;
	theURL = theURL + "&mfg=" + document.newForm.mfg.value;
	theURL = theURL + "&sku=" + document.newForm.sku.value;
	theURL = theURL + "&description=" + document.newForm.description.value;
	theURL = theURL + "&regprice=" + document.newForm.regprice.value;
	theURL = theURL + "&saleprice=" + document.newForm.saleprice.value;

	xstartdate = document.newForm.startdate.value;
	zstartdate  = xstartdate.replace('/','-');
	startdate  = zstartdate.replace('/','-');
	xenddate = document.newForm.enddate.value;
	zenddate  = xenddate.replace('/','-');
	enddate  = zenddate.replace('/','-');

	theURL = theURL + "&startdate=" + startdate;
	theURL = theURL + "&enddate=" + enddate;
	document.newForm.action = theURL;
	document.newForm.submit();
}
function delAddress(xid) {

	if (confirm("Are you sure you would like to delete this address book entry?")) {
		theURL = "wsaddressbook_del.asp?xid=" +xid;
		window.location = theURL;
	}
	else {
		return false;
	}
}
function editAddress(xid) {

	theURL = "wsaddressbook_edit.asp?xid=" + xid;
	open(theURL,"editWin","width=350,height=340,scrollbars=no,menubar=no");
}

function doubleCheckEmail() {

	if (confirm("Are you sure you would like to send out emails?")) {
		document.formE.submit();
	}
	else {
		return false;
	}
}
function print_webspecial(xid) {
	theURL = "print_webspecial.asp?xid=" + xid;
	xWin = window.open(theURL,"printWin","width=50,height=50,scrollbars=no,menubar=no");

	self.setTimeout('winClose()', 10000) 
}
function winClose() {
     xWin.close()
}

