
var loadingDisplay = '<img alt="Loading..." src="directory/images/indicator.gif" vertical-align="bottom" hspace="7" /> <span style="padding:3px;font-style:italic;">Loading...</span>';
var smLoadingDisplay = '<img alt="Loading..." src="directory/images/indicator.gif" align="left" />';


function popup_window(strURL, size_width, size_height, has_scrollbars, has_resize, windowname) {
   if (!windowname) windowname = "popwindow";
        window_options = 'toolbar=0,width=' + size_width + ',' + 'height=' + size_height + ',center,directories=0,status=1,resizable=' + has_resize + ',scrollbars=' + has_scrollbars + ',menubar=0,left=175,top=100';
        newWindow=window.open(strURL, windowname, window_options);
        newWindow.resizeTo(size_width + 25, size_height + 100);
        newWindow.focus();
        } 

function disableForm(theform) {
  if (document.all || document.getElementById) {
    for (i = 0; i < theform.length; i++) {
      var tempobj = theform.elements[i];
      if (tempobj.type.toLowerCase() == "submit") {
        tempobj.disabled = true;
        }
	  }
	}
  }

function ConfirmURL (strMessage, url) {
	if (confirm(strMessage)) {
		location.href = url;
		}
	}  
	
function voidFunc() {
	return false;
	}

function jumpToSelect(strSelectBox) {
	var url = $('#' + strSelectBox).val();
	location.href=url;
	}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}

function addslashes(str) {
str=str.replace(/\\/g,'\\\\');
str=str.replace(/\'/g,'\\\'');
str=str.replace(/\"/g,'\\"');
str=str.replace(/\0/g,'\\0');
return str;
}
function stripslashes(str) {
str=str.replace(/\\'/g,'\'');
str=str.replace(/\\"/g,'"');
str=str.replace(/\\0/g,'\0');
str=str.replace(/\\\\/g,'\\');
return str;
}

MM_reloadPage(true);	