whitespace = "\t \n\r";
function isEmptyString(s){
    var i;
	if((s == null) || (s.length == 0)) return true;
	for(i=0;i < s.length;i++){
		var currchar = s.charAt(i);
		if(whitespace.indexOf(currchar) == -1) return false;
	}
	return true;
}

All_numbers = "1234567890";
function isAnyNumber_Check(s){
    var i;
	for(i=0;i < s.length;i++){
		var currchar = s.charAt(i);
		if(All_numbers.indexOf(currchar) != -1) return true;
	}
	return false;
}

function isNotNumeric(s){
	if(isNaN(s)){
		return(true);
	}
	return(false);
}

function isEmail(n){
	if ((n==null) || (n.length==0))	{
		return true;
	}
	if (isEmptyString(n)){
		return false;
	}
	var i=1;
	var nLength=n.length;
	while((parseInt(i) < parseInt(nLength)) && (n.charAt(parseInt(i)) != '@')){
		i++;
	}
	if ((parseInt(i) >= parseInt(nLength)) || (n.charAt(i)!="@")){
		return false;	
	} else {
		i+=2;
	}
	while((i<nLength) && (n.charAt(i)!=".")){
		i++;
	}
	if ((i>=nLength-1) || (n.charAt(i)!=".")){
		return false;	
	} else {
		return true;
	}
}

/////////////////////////////////////////////////
first_I_on = new Image();
first_I_on.src = "/images/navigation_images/f_on.gif";
first_I_off = new Image();
first_I_off.src = "/images/navigation_images/f_off.gif";

previouspage_I_on = new Image();
previouspage_I_on.src = "/images/navigation_images/pp_on.gif";
previouspage_I_off = new Image();
previouspage_I_off.src = "/images/navigation_images/pp_off.gif";

previousframe_I_on = new Image();
previousframe_I_on.src = "/images/navigation_images/p_on.gif";
previousframe_I_off = new Image();
previousframe_I_off.src = "/images/navigation_images/p_off.gif";

nextframe_I_on = new Image();
nextframe_I_on.src = "/images/navigation_images/n_on.gif";
nextframe_I_off = new Image();
nextframe_I_off.src = "/images/navigation_images/n_off.gif";

nextpage_I_on = new Image();
nextpage_I_on.src = "/images/navigation_images/nn_on.gif";
nextpage_I_off = new Image();
nextpage_I_off.src = "/images/navigation_images/nn_off.gif";

last_I_on = new Image();
last_I_on.src = "/images/navigation_images/l_on.gif";
last_I_off = new Image();
last_I_off.src = "/images/navigation_images/l_off.gif";

function rollon(imgName) {
    document.images[imgName.name].src = eval(imgName.name + "_on.src");
}

function rolloff(imgName){
	document.images[imgName.name].src = eval(imgName.name + "_off.src");
}
function ShowNavigationBar(Record_Start_ID,Records_To,TotalRecords,visualtablesrows,visualbarcolumns,page_url_nav){
   	document.write("<table width=591 cellpadding=5 cellspacing=0 border=0 align=center><tr class='bgcolor4'><td><b>&nbsp;&nbsp;Record's Display ? ["+Record_Start_ID+" - "+Records_To+" of "+TotalRecords+"]</b></td></tr><tr><td align=left height=1>");
	if(TotalRecords > visualtablesrows){
		document.write("<table border=0 align=left height=27 valign=Bottom cellPadding=0 cellSpacing=9 ");
  		document.write("<tr>");
  		if(parseInt(TotalRecords) != 0){
	 		document.write("<td ALIGN=left><b>Go to Page:</b></td>");
  	 		var first_I=first_I;
  	 		if((parseInt((parseInt(Record_Start_ID)/parseInt(visualtablesrows)) + 1)-1)> 0){
  				document.write("<td > <a href='"+page_url_nav+"&Record_Start_ID=" + 1 + "' TITLE='First Page' target='_self' onmouseover='rollon(first_I);' onmouseout='rolloff(first_I);'><img src='/images/navigation_images/f_off.gif' name='first_I' border=0></a></td>");
			}	
  		}
	  	if(((parseInt((parseInt(Record_Start_ID)/(parseInt(visualtablesrows)*parseInt(visualbarcolumns))) + 1)-1)> 0) && (parseInt(TotalRecords) != 0)){
	 	 	var previouspage_I=previouspage_I;
		 	document.write("<td > <a href='"+page_url_nav+"&Record_Start_ID=" + parseInt((parseInt(parseInt(Record_Start_ID)/(parseInt(visualtablesrows)*parseInt(visualbarcolumns)))-1)*(parseInt(visualtablesrows)*parseInt(visualbarcolumns))+1) + "'  TITLE='Previous "+visualbarcolumns+" Pages' target='_self' onmouseover='rollon(previouspage_I);' onmouseout='rolloff(previouspage_I);'><img src='/images/navigation_images/pp_off.gif' name='previouspage_I' border=0></a></td>");
	  	}
	  	if(((parseInt((parseInt(Record_Start_ID)/parseInt(visualtablesrows)) + 1)-1)> 0) && (parseInt(TotalRecords) != 0)){
	  	 	var previousframe_I=previousframe_I;
	 	 	document.write("<td > <a href='"+page_url_nav+"&Record_Start_ID=" + parseInt((parseInt(parseInt(Record_Start_ID)/parseInt(visualtablesrows))-1)*parseInt(visualtablesrows)+1) + "'  TITLE='Previous Pages' target='_self' onmouseover='rollon(previousframe_I);' onmouseout='rolloff(previousframe_I);'><img src='/images/navigation_images/p_off.gif'  name='previousframe_I' border=0></a></td>");
	  	}
	  	for(var I=parseInt((parseInt((parseInt(Record_Start_ID)/(parseInt(visualtablesrows)*parseInt(visualbarcolumns))) + 1)-1)*parseInt(visualbarcolumns)+1);I<=parseInt((parseInt((parseInt(Record_Start_ID)/(parseInt(visualtablesrows)*parseInt(visualbarcolumns))) + 1)-1)*parseInt(visualbarcolumns)+parseInt(visualbarcolumns)) && ((I-1)*parseInt(visualtablesrows)<TotalRecords) && (parseInt(TotalRecords) != 0);I++){
	  		var J = I-1;
	  		document.write("<font size=3>");
	  		if(parseInt((parseInt(Record_Start_ID)-1)/parseInt(visualtablesrows)) == J){
	    		document.write("<td align=center valign=center><font class='fonttype4'><b>" + I +"</b></font></td>");
			} else {
	    		document.write("<td align=center valign=center> <a href='"+page_url_nav+"&Record_Start_ID=" + parseInt(parseInt(parseInt( J )*parseInt(visualtablesrows))+1) + "' target='_self'>" + I +"</a></td>");
			}	
	  		document.write("</font>");
	  	}
	  	if((parseInt(parseInt((parseInt(Record_Start_ID)/parseInt(visualtablesrows))+1)*parseInt(visualtablesrows)) < TotalRecords) && (parseInt(TotalRecords) != 0)){
	  		var nextframe_I=nextframe_I;
	  		document.write("<td > <a href='"+page_url_nav+"&Record_Start_ID=" + parseInt(parseInt(parseInt((parseInt(Record_Start_ID)/parseInt(visualtablesrows))+1)*parseInt(visualtablesrows))+1) + "'  TITLE='Next Page' target='_self'   onmouseover='rollon(nextframe_I);' onmouseout='rolloff(nextframe_I);'><img src='/images/navigation_images/n_off.gif' name='nextframe_I' border=0></a></td>");
	  	}
	  	if(((I-1)*parseInt(visualtablesrows) < TotalRecords) && (parseInt(TotalRecords) != 0)){
	 	 	var nextpage_I=nextpage_I;
	  		document.write("<td > <a href='"+page_url_nav+"&Record_Start_ID=" + parseInt(parseInt(parseInt((parseInt(Record_Start_ID)/(parseInt(visualtablesrows)*parseInt(visualbarcolumns)))+1)*(parseInt(visualtablesrows)*parseInt(visualbarcolumns)))+1) + "'  TITLE='Next "+visualbarcolumns+" Pages' target='_self'   onmouseover='rollon(nextpage_I);' onmouseout='rolloff(nextpage_I);'><img src='/images/navigation_images/nn_off.gif' name='nextpage_I' border=0></a></td>");
	  	}
	  	if(parseInt(TotalRecords) != 0){
	  		var last_I=last_I;
	  		if((parseInt(parseInt((parseInt(Record_Start_ID)/parseInt(visualtablesrows))+1)*parseInt(visualtablesrows)) < TotalRecords)){
	  			document.write("<td > <a href='"+page_url_nav+"&Record_Start_ID=" + parseInt((parseInt(parseInt(TotalRecords-1)/parseInt(visualtablesrows))*parseInt(visualtablesrows))+1) + "'  TITLE='Last Page' target='_self' onmouseover='rollon(last_I);' onmouseout='rolloff(last_I);'><img src='/images/navigation_images/l_off.gif' name='last_I' border=0></a></td>");
			}	
	  	}
	  	document.write("</tr></table></td></tr></table>");
	} else {
	  	document.write("</td></tr></table>");
	}
}
/////////////////////////////////////////////////

function DonloadWindow(my_url) { 
	var My_Download_Open = window.open(my_url,"My_Download","toolbar=0,location=0,directories=0,status=0,menubar=1,scrollbars=1,resize=no,copyhistory=0,width=627,height=375");
	My_Download_Open.focus();
	My_Download_Open.moveTo(85,50);
}

function confdel(){
	var fl = 0;
	for(i = 0; i < (document.frm_1.elements.length); i++){
		if((document.frm_1.elements[i].type=="checkbox") && (document.frm_1.elements[i].checked==true)){
			fl = 1;
			break;
		}
	}
	if(fl == 1){
		if(confirm("Records related will also get Deleted, Are you sure you want to Delete?")){
			fl = 1;
		} else {
			fl = 0;
		}
	} else {
		alert("Nothing to Delete.");
		fl = 0;
	}
	if(fl == 1){
		return true;
	} else {
		return false;
	}
}

function Select_Delect_All(total_records_viewed){
	for(i=0;i<total_records_viewed;i=i+1){
		if(document.frm_1.chk_SD.checked==true){
			document.frm_1.elements["chk_1["+i+"]"].checked=true;
		} else {
			document.frm_1.elements["chk_1["+i+"]"].checked=false;
		}
	}
}

extArray = new Array(".gif",".jpg",".jpeg",".jpe");
function Allowed_Uploaded_Files(File_Value){
	allowSubmit = false;
	if (!File_Value){
		return true;
	}
	while (File_Value.indexOf("\\") != -1){
		File_Value = File_Value.slice(File_Value.indexOf("\\") + 1);
	}
	ext = File_Value.slice(File_Value.indexOf(".")).toLowerCase();
	for (var i = 0; i < extArray.length; i++){
		if (extArray[i] == ext){
			allowSubmit = true;
			break;
		}
	}
	if (allowSubmit){
		return true;
	} else {
		return false;
	}
}

function confins(){
	var fl = 0;
	for(i = 0; i < (document.frm_1.elements.length); i++){
		if((document.frm_1.elements[i].type=="checkbox") && (document.frm_1.elements[i].checked==true)){
			fl = 1;
			break;
		}
	}
	if(fl == 1){
		if(confirm("Are you sure you want to Insert?")){
			fl = 1;
		} else {
			fl = 0;
		}
	} else {
		alert("Nothing to Insert.");
		fl = 0;
	}
	if(fl == 1) {
		return true;
	} else {
		return false;
	}
}

// moved from emailcampaing_next.php which already includes admin/ssi/adminheader.php which already contains this file...
function emailCampaignFormValidate(theform){
	if (document.frm_1.txtSubject.value=="") {
		alert("Subject : Can't be left blank");
		document.frm_1.txtSubject.focus();
		return false;
	}
	if (document.frm_1.cboSendout.value=="0"){
		alert("Please select Sendout");
		document.frm_1.cboSendout.focus();
		return false;
	}
}

// moved from categorymodify.php which already includes admin/ssi/adminheader.php which already contains this file...
function categoryModifyFormValidate(){
   	if(isEmptyString(document.frm_1.categorycode.value.toString())) {
		alert("Please Enter Category Code");
		document.frm_1.categorycode.value="";
		document.frm_1.categorycode.focus();
		return false;
	}
	var CheckParticularCharacter = document.frm_1.categorycode.value.toString().indexOf(",");
	if(CheckParticularCharacter != -1) {  
	  	alert('Sorry!  ,  in  Category Code is not Accepted.');
		document.frm_1.categorycode.focus();
		return(false);
	}	
	var CheckParticularCharacter = document.frm_1.categorycode.value.toString().indexOf("\"");
	if(CheckParticularCharacter != -1) {  
	  	alert('Sorry!  \"  in  Category Code is not Accepted.');
		document.frm_1.categorycode.focus();
		return(false);
	}	
	var CheckParticularCharacter = document.frm_1.categorycode.value.toString().indexOf("\'");
	if(CheckParticularCharacter != -1) {  
	  	alert('Sorry!  \'  in  Category Code is not Accepted.');
		document.frm_1.categorycode.focus();
		return(false);
	}
	if(isEmptyString(document.frm_1.categoryname.value.toString())) {
		alert("Please Enter Category Name");
		document.frm_1.categoryname.value="";
		document.frm_1.categoryname.focus();
		return false;
	}	
	return true;
}

// moved from adminlogin.php which already includes this file...
function adminLoginFormValidate() {
 	if(document.adminlogin.txt_userid.value=="") {
		alert("User ID : Cannot be left blank");
		document.adminlogin.txt_userid.focus();
		return false;
	}
	if(document.adminlogin.txt_userpassword.value=="") {
		alert("User Password : Cannot be left blank");
		document.adminlogin.txt_userpassword.focus();
		return false;
	}
}

// moved from contactus.php
function contactUsFormValidate(theForm) {
   	if(isEmptyString(theForm.fname.value.toString())) {
		alert("First name should not be blank");
		theForm.fname.value="";
		theForm.fname.focus();
		return false;
	}
	if(isEmptyString(theForm.lname.value.toString())) {
		alert("Last name should not be blank");
		theForm.lname.value="";
		theForm.lname.focus();
		return false;
	}
   	if(isEmptyString(theForm.email.value.toString())) {
		alert("Email should not be blank");
		theForm.email.value="";
		theForm.email.focus();
		return false;
	}
   	if(isEmptyString(theForm.city.value.toString())) {
		alert("city should not be blank");
		theForm.city.value="";
		theForm.city.focus();
		return false;
	}
	if(isEmptyString(theForm.state.value.toString())) {
		alert("State should not be blank");
		theForm.state.value="";
		theForm.state.focus();
		return false;
	}
   	if(isEmptyString(theForm.zip.value.toString())) {
		alert("zip should not be blank");
		theForm.zip.value="";
		theForm.zip.focus();
		return false;
	}
   	if(isEmptyString(theForm.comment.value.toString())) {
		alert("Comments should not be blank");
		theForm.comment.value="";
		theForm.comment.focus();
		return false;
	}
    return true;
}

// moved from upper.php, shoppingcart.php and preindex.php
// HOPEFULLY DEPRECATED!! :)
function pageTitleDisplay(str){
	document.write("<table border=0 width='60%' cellspacing='0' cellpadding='0'>");
	document.write("<tr>");
	document.write("<td width='100%' nowrap><p align='right'>");
	document.write("<font face='arial' size=5 color='#371C07'><b>");
	document.write(str);
	document.write("</b></font></p>");
	document.write("</td>");
	document.write("</tr>");
	document.write("</table>");
}


// moved from upperstructure. inc
function txtsearchval() {
	if(document.frmSearch.txtSearch2.value!="none") {
	   document.frmSearch.txtSearch.value=document.frmSearch.txtSearch2.value;
	   document.frmSearch.txtSearch.focus();
	}
}
// moved from upperstructure.inc
function checksearch() {
	if(document.frmSearch.txtSearch.value==""){
		alert("Please insert a search criteria");
		document.frmSearch.txtSearch.focus();
		return false;
	}
	document.frmSearch.hdnSearch.value="yes";
	document.frmSearch.submit();	
}

// moved from adminsuperedit.php...should be rewrited and tested so that is not repeated all over in some other scripts...
function adminSuperEdit_passwordValidate(theform) {
	if(document.frm_1.RV_userpassword.value=="") {
		alert("UserPassword : Can't be left blank");
		document.frm_1.RV_userpassword.focus();
		return false;
	}
	if(document.frm_1.RV_userpasswordconfirm.value=="") {
		alert("Confirm Password : Can't be left blank");
		document.frm_1.RV_userpasswordconfirm.focus();
		return false;
	}
	if (document.frm_1.RV_userpassword.value != document.frm_1.RV_userpasswordconfirm.value) {
		alert("Confirm Password : Should be same with password field");
		document.frm_1.RV_userpasswordconfirm.focus();
		return false;
	}
	return Validate(frm_1);
	
}

function openWin(id, h_size, v_size){
	if (!h_size){
		h_size=400;
	}
	if (!v_size){
		v_size=400;
	}
  w = window.open('calendarevent.php?id='+id,'event'+id,'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width='+h_size+',height='+v_size);
}

// moved from shoppingcartview.php
function viewPage(theid) {
	var hdval;
	hdval=theid;
	if (hdval =="") {
		return false;
	}
	open("imageview.php?id="+theid,null,"height=600,width=600,status=no,xpos=10,ypos=10,toolbar=no,menubar=no,scrollbar=no,location=no");
}

// moved from shoppingcartview.php
function checkupload() {
	var fl = 0;
	for(i = 0; i < (document.shoppingcartview.elements.length); i++) {
		if((document.shoppingcartview.elements[i].type=="checkbox") && (document.shoppingcartview.elements[i].checked==true)) {
			fl = 1;
			break;
		}
	}

	if(fl == 1)	{
		if(confirm("Would you want to go with selected Item/Items?")) {
			fl = 1;
		} else {
			fl = 0;
		}
	} else {
		alert("Please select Item before go for shopping !!");
		fl = 0;
	}

	if(fl == 1) {
		return true;
	} else {
		return false;
	}
}

// moved from shoppingcartview.php
function checkwishsubmit() {
	if(!checkupload()) {
		 return false;
	 }
	document.shoppingcartview.action="wishcart.php";
	document.shoppingcartview.method="post";
	document.shoppingcartview.submit();
}

// moved from shoppingcartview.php
function checksubmit() {
	 /*
	 if(!Validate(shoppingcartview)) {
		 return false;
	 }
	 */
	if(!checkupload())  {
		return false;
	}
	document.shoppingcartview.action="shoppingcart.php";
	document.shoppingcartview.method="post";
	document.shoppingcartview.submit();
}

// moved from shoppingcartview.php
var checkstat="yes";
function checkall() {
	var len=document.shoppingcartview.elements.length;
	if(checkstat=="yes"){
		for(i=0;i<len;i++){
			if(document.shoppingcartview.elements[i].type=="checkbox") {
				document.shoppingcartview.elements[i].checked=true;		
			}	
		}
		checkstat="no";	
	} else {
		for(i=0;i<len;i++) {
			if(document.shoppingcartview.elements[i].type=="checkbox") {
				document.shoppingcartview.elements[i].checked=false;		
			}	
		}
		checkstat="yes";	
	}
}

// moved from contentnew.php (used to be submitall())
function contentPageAddFormValidate(theForm) {
	if(theForm.pagename.value=="") {
		alert("Please Insert the page name ");
		theForm.pagename.focus();
		return false;
	}
	if((theForm.pagename.value!="") && (theForm.pagename.value.indexOf(".") != -1)) {
		alert("Please remove dot(.) from pagename");
		theForm.pagename.focus();
		return false;
	}
	return true;
}

// moved from contentnews.php (used to be Save())
function contentPageEditFormValidate(theForm) {
	var str;
	str=theForm.hdnchk.value;
	// if document is not a system document, and thus it needs header footers...
	if(str==1){
		if(theForm.HeaderContent.value==""){
			alert("Please select a Header this Content Pages");
			theForm.HeaderContent.focus();
			return false;
		}
	}
	if(confirm("You Want To Publish The Template?")){
		//theForm.Doc.value =idContent.document.body.innerHTML;
		theForm.submit();
	} else {
		return false;
	}
}



// Compare two options within a list by VALUES
function compareOptionValues(a, b) { 
  // Radix 10: for numeric values
  // Radix 36: for alphanumeric values
  var sA = parseInt( a.value, 36 );  
  var sB = parseInt( b.value, 36 );  
  return sA - sB;
  
}

// Dual list move function
function moveDualList( srcList, destList, moveAll ) {
  /* Original:  Fred P */
  // Do nothing if nothing is selected
  if (  ( srcList.selectedIndex == -1 ) && ( moveAll == false )   )  {
    return;
  }

  newDestList = new Array( destList.options.length );
  var len = 0;
  for( len = 0; len < destList.options.length; len++ ) {
    if ( destList.options[ len ] != null ) {
      newDestList[ len ] = new Option( destList.options[ len ].text, destList.options[ len ].value, destList.options[ len ].defaultSelected, destList.options[ len ].selected );
    }
  }

  for( var i = 0; i < srcList.options.length; i++ ) { 
    if ( srcList.options[i] != null && ( srcList.options[i].selected == true || moveAll ) ) {
       // Statements to perform if option is selected
       // Incorporate into new list
       newDestList[ len ] = new Option( srcList.options[i].text, srcList.options[i].value, srcList.options[i].defaultSelected, srcList.options[i].selected );
       len++;
    }
  }

  // Sort out the new destination list
  // newDestList.sort( compareOptionValues );   // BY VALUES

  // Populate the destination with the items from the new array
  for ( var j = 0; j < newDestList.length; j++ ) {
    if ( newDestList[ j ] != null ) {
      destList.options[ j ] = newDestList[ j ];
    }
  }

  // Erase source list selected elements
  for( var i = srcList.options.length - 1; i >= 0; i-- ) { 
    if ( srcList.options[i] != null && ( srcList.options[i].selected == true || moveAll ) ) {
       // Erase Source
       srcList.options[i]       = null;
    }
  }
} 


function moveInList(list, to) {
	// Original:  Roelof Bos
	// var list = document.form.list;
	var moveSubject = list.selectedIndex;
	var total = list.options.length-1;
	// none selected
	if (moveSubject == -1) {
		return false;
	}
	// list's bottom
	if (to == +1 && moveSubject == total) {
		return false;
	}
	// list's top
	if (to == -1 && moveSubject == 0) {
		return false;
	}
	
	var items = new Array;
	var values = new Array;
	
	for (i = total; i >= 0; i--) {
		items[i] = list.options[i].text;
		values[i] = list.options[i].value;
	}
	
	for (i = total; i >= 0; i--) {
		if (moveSubject == i) {
			list.options[i + to] = new Option(items[i],values[i], 0, 1);
			list.options[i] = new Option(items[i + to], values[i + to]);
			i--;
		} else {
			list.options[i] = new Option(items[i], values[i]);
	   }
	}
	
	list.focus();
}

function formSelect_setSelectedOnAll(theForm, elementName, selected_status) {
	theElement = theForm.elements[elementName];
	for(var i = 0; i < theElement.length; i++) {
		theElement[i].selected = selected_status;
	}
}




var panes = new Array();
function setupPanes(containerId, defaultTabId) {
  // go through the DOM, find each tab-container
  // set up the panes array with named panes
  // find the max height, set tab-panes to that height
  panes[containerId] = new Array();
  var maxHeight = 0; var maxWidth = 0;
  var container = document.getElementById(containerId);
  var paneContainer = container.getElementsByTagName("div")[0];
  var paneList = paneContainer.childNodes;
  for (var i=0; i < paneList.length; i++ ) {
    var pane = paneList[i];
    if (pane.nodeType != 1) continue;
    if (pane.offsetHeight > maxHeight) maxHeight = pane.offsetHeight;
    if (pane.offsetWidth  > maxWidth ) maxWidth  = pane.offsetWidth;
    panes[containerId][pane.id] = pane;
    pane.style.display = "none";
  }
    paneContainer.style.height = maxHeight + "px";
    paneContainer.style.width  = maxWidth + "px";
    document.getElementById(defaultTabId).onclick();
}

function showPane(paneId, activeTab) {
  // make tab active class
  // hide other panes (siblings)
  // make pane visible
  
    for (var con in panes) {
    activeTab.blur();
    activeTab.className = "tab-active";
    if (panes[con][paneId] != null) { // tab and pane are members of this container
      var pane = document.getElementById(paneId);
      pane.style.display = "block";
      var container = document.getElementById(con);
      var tabs = container.getElementsByTagName("ul")[0];
      var tabList = tabs.getElementsByTagName("a")
      for (var i=0; i<tabList.length; i++ ) {
        var tab = tabList[i];
        if (tab != activeTab) tab.className = "tab-disabled";
      }
      for (var i in panes[con]) {
        var pane = panes[con][i];
        if (pane == undefined) continue;
        if (pane.id == paneId) continue;
        pane.style.display = "none"
      }
    }
  }
  return false;    
}

