
<!--
function wopen(url, name, param) {
sitemap=window.open(url, name, param)
}
// -->


<!--
function preloadImages() {
  // Don't bother if there's no document.images
  if (document.images) {
    if (typeof(document.WM) == 'undefined'){
      document.WM = new Object();
    }
    document.WM.loadedImages = new Array();
    // Loop through all the arguments.
    var argLength = preloadImages.arguments.length;
    for(arg=0;arg<argLength;arg++) {
      // For each arg, create a new image.
      document.WM.loadedImages[arg] = new Image();
      // Then set the source of that image to the current argument.
      document.WM.loadedImages[arg].src = preloadImages.arguments[arg];
    }
  }
}
// -->


<!--

function ImageSwap(daImage, daSrc){
  var objStr,obj;
  // Check to make sure that images are supported in the DOM.
  if(document.images){
    // Check to see whether you are using a name, number, or object
    if (typeof(daImage) == 'string') {
      // This whole objStr nonesense is here solely to gain compatability
      // with ie3 for the mac.
      objStr = 'document.' + daImage;
      obj = eval(objStr);
      obj.src = daSrc;
    } else if ((typeof(daImage) == 'object') && daImage && daImage.src) {
      daImage.src = daSrc;
    }
  }
}

function validatePreview(pathname){
	if(document.PageForm.WindowTitleBar.value==""){
		alert("Window Title Bar is required.");
		document.PageForm.WindowTitleBar.focus();
		return;
	}
	if(document.PageForm.ContentHeaderTitle.value==""){
		alert("Content Header Title is required.");
		document.PageForm.ContentHeaderTitle.focus();
		return;
	}
	/*if(document.PageForm.BodyContent.value==""){
		alert("Body Content is required.");
		document.PageForm.BodyContent.focus();
		return;
	}*/
	//location=pathname+'?p=1';
	//alert(href);
	
	document.PageForm.action=pathname+'?p=1';
	document.PageForm.submit();
}

function trim(str)
{
   return str.replace(/^\s*|\s*$/g,"");
}

function selectTab(td1, td2){
	var td1Obj = document.getElementById(td1+'tab');
	var td2Obj = document.getElementById(td2+'tab');
	td1Obj.className = 'selectedTabCell';
	td2Obj.className = 'notSelectedTabCell';
	
	var fieldSetObj1 = document.getElementById(td1);
	var fieldSetObj2 = document.getElementById(td2);
	fieldSetObj1.style.display = 'block';
	fieldSetObj2.style.display = 'none';
}
// -->