// JavaScript Document/* Image/Text Swap */ function verifyDelete(id, app) {        msg = "Are you sure that you want to delete this item?";        if (confirm(msg)) {            top.location.href =  "?action=delete&id=" + id + "&app=" +app;        }    }function submitForm(){   document.form.submit();}var w3c = (document.getElementById) ? 1:0;var ns4 = (document.layers) ? 1:0;var ie4 = (document.all) ? 1:0;function upSwap(img,state){	if(state == "on"){		document[img].src = "../_lib/images/icon_up_arrow1.gif";		tempArray = img.split("_");		linkName = "link_" + tempArray[1];		var nsLayer = eval("document." + linkName);		//!ns4?document.getElementById(linkName).style.color = "#ff0033":nsLayer.document.color = "#ff0033";		!ns4?document.getElementById(linkName).style.cssText = "color: #ff0033; text-decoration: underline;":void(0);			}else{		document[img].src = "../_lib/images/icon_up_arrow0.gif";		tempArray = img.split("_");		linkName = "link_" + tempArray[1];// on mouse out on text		!ns4?document.getElementById(linkName).style.cssText = "color: #333333; text-decoration: none;":void(0);		//!ns4?document.getElementById(linkName).style.textDecoration = "none";	}}function dnSwap(img,state){	if(state == "on"){		document[img].src = "../_lib/images/icon_dn_arrow1.gif";		tempArray = img.split("_");		linkName = "link_" + tempArray[1];		var nsLayer = eval("document." + linkName);		//!ns4?document.getElementById(linkName).style.color = "#ff0066":nsLayer.document.color = "#ff0066";		!ns4?document.getElementById(linkName).style.cssText = "color: #ff0033; text-decoration: underline;":void(0);	}else{		document[img].src = "../_lib/images/icon_dn_arrow0.gif";		tempArray = img.split("_");		linkName = "link_" + tempArray[1];// on mouse out on text		//!ns4?document.getElementById(linkName).style.color = "#626262":void(0);		!ns4?document.getElementById(linkName).style.cssText = "color: #333333; text-decoration: none;":void(0);	}}// AutoTab function by javascript.comfunction autotab(original,destination,jumpMenu){		if (original.getAttribute&&original.value.length==original.getAttribute("maxlength")){		jumpMenu.value = original.value;		destination.focus()		}}// enters jump menu value into a form fieldfunction quickText(form,selObj){ var txt=""; txt = selObj.options[selObj.selectedIndex].value ; form.value=txt;}// enters jump menu value into a form fieldfunction clearStock(){  document.form.quantity="";}///// navigation switcher for admin/userfunction nav_jump(targ,selObj,restore){ if(selObj.options[selObj.selectedIndex].value != "null"){ 	 eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'"); 	 if (restore) selObj.selectedIndex=0;  }else{  selObj.selectedIndex=0;  }}function sort_jump(targ,selObj,restore){ if(selObj.options[selObj.selectedIndex].value != "null"){ 	 eval(targ+".location='?sort="+selObj.options[selObj.selectedIndex].value+"'"); 	 if (restore) selObj.selectedIndex=0;  }else{  selObj.selectedIndex=0;  }}// universal pop up center windowfunction openPop(url,name,popW,popH) {        version = navigator.appVersion;	var w = 800, h = 600;	if (document.all || document.layers) {		w = screen.availWidth;		h = screen.availHeight;	}	var leftPos = (w-popW)/2, topPos = (h-popH)/2;	window.open(url,name,'width=' + popW + ',height=' + popH + ',scrollbars=no,toolbar=no,status=yes,resizable=no,top=' + topPos + ',left=' + leftPos);void(0);}function openPop2(url,name,popW,popH) {        version = navigator.appVersion;	var w = 800, h = 600;	if (document.all || document.layers) {		w = screen.availWidth;		h = screen.availHeight;	}	var leftPos = (w-popW)/2, topPos = (h-popH)/2;	window.open(url,name,'width=' + popW + ',height=' + popH + ',scrollbars=auto,toolbar=no,status=yes,resizable=no,top=' + topPos + ',left=' + leftPos);void(0);}//-->function openCal(url,name,popW,popH) {        version = navigator.appVersion;	var w = 800, h = 600;	if (document.all || document.layers) {		w = screen.availWidth;		h = screen.availHeight;	}	var leftPos = (w-popW)/2, topPos = (h-popH)/2;	window.open(url,name,'width=' + popW + ',height=' + popH + ',scrollbars=auto,toolbar=no,status=yes,resizable=no,top=' + topPos + ',left=' + leftPos);void(0);}<!-- Text Box Attributes -->function AddText(form, Action)	{		var AddTxt="";		var txt="";		if(Action==1) 			{  				txt=prompt("Text to be bolded","Text");     				if(txt!=null)           					AddTxt="<b>"+txt+"</b>";        			}		if(Action==2) 			{  				txt=prompt("URL for the link.","http://");      				if(txt!=null)					{          						AddTxt='<a href="'+txt+'" target="_blank">';            						txt=prompt("Text to be shown for the link","Text");              						AddTxt+=txt+"</a>\r\n";            				}			}		if(Action==3) 			{  				txt=prompt("Email Address.","mailto:");      				if(txt!=null)					{          						AddTxt='<a href="'+txt+'">';            						txt=prompt("Text to be shown for the email link","Text");              						AddTxt+=txt+"</a>\r\n";         				}			}		if(Action==4) AddTxt="<br>\r\n";							form.value+=AddTxt;	}	function closeVenue(selObj){	if(selObj.options[selObj.selectedIndex].value != "null"){	document.getElementById("venuebox").innerHTML= '';	}}	function fillOutVenue(selObj,theForm){	if(selObj.options[selObj.selectedIndex].value != "null"){	var VenueName;		VenueName = selObj.options[selObj.selectedIndex].value;	//document.getElementById("venuebox").innerHTML= '';<br>	document.form.venue.value = VenueName;	document.form.city.value = VenueName;	}}		function showOrder(name,ordered,type,total,invoice){	document.getElementById("showName").innerHTML=name;	document.getElementById("showOrdered").innerHTML= ordered;	document.getElementById("showType").innerHTML=type;	document.getElementById("showTotal").innerHTML= total;	document.getElementById("showInvoice").innerHTML= invoice;}function hideOrder(){	document.getElementById('musicName').innerText= ' ';	document.getElementById("showName").innerText= ' ';	document.getElementById("showOrdered").innerText= ' ';	document.getElementById("showType").innerText= ' ';	document.getElementById("showTotal").innerText= ' ';	document.getElementById("showInvoice").innerText= ' ';}