function clientSideInclude(id, url) {
  var req = false;
  // For Safari, Firefox, and other non-MS browsers
  if (window.XMLHttpRequest) {
    try {
      req = new XMLHttpRequest();
    } catch (e) {
      req = false;
    }
  } else if (window.ActiveXObject) {
    // For Internet Explorer on Windows
    try {
      req = new ActiveXObject("Msxml2.XMLHTTP");
    } catch (e) {
      try {
        req = new ActiveXObject("Microsoft.XMLHTTP");
      } catch (e) {
        req = false;
      }
    }
  }
 var element = document.getElementById(id);
 if (!element) {
  alert("Bad id " + id +
   "passed to clientSideInclude." +
   "You need a div or span element " +
   "with this id in your page.");
  return;
 }
  if (req) {
    // Synchronous request, wait till we have it all
    req.open('GET', url, false);
    req.send(null);
    element.innerHTML = req.responseText;
  } else {
    element.innerHTML =
   "Sorry, your browser does not support " +
      "XMLHTTPRequest objects. This page requires " +
      "Internet Explorer 5 or better for Windows, " +
      "or Firefox for any system, or Safari. Other " +
      "compatible browsers may also exist.";
  }

}

tabon = new Image;
tabon.src = "images/layout/on.gif";

taboff = new Image;
taboff.src = "images/layout/off.gif";

function change(imgLocation, imgName) 
{
 if(document.images) 
   {
   document.images[imgLocation].src = eval(imgName + ".src"); 
   }
}
function launch(ID) {

var setheight=(screen.height)-80
var setwidth=(screen.width)-10

	void(window.open('' +ID+ '', 'CMS','height='+setheight+', width='+setwidth+', resizable=yes, status=no, scrollbars=yes, left=0, top=0'));

	//window.location.href="exit.asp";

}


function setFocus(ID) 
{ 
	document.login.username.focus(); 
}


function validateform()
{
	if (document.login.username.value== "") {
		alert("You must enter a Username.");
		document.login.username.focus();
		return false;
		}
	if (document.login.password.value== "") {
		alert("You must enter a Password.");
		document.login.password.focus();
		return false;
		}
}

function confirmSubmit() {
var agree=confirm("Are you sure you wish to continue?");
if (agree)
	return true ;
else
	return false ;
}

function launchfm(ID) {

var setheight=(screen.height)-80
var setwidth=(screen.width)-10

	void(window.open('' +ID+ '', 'CMSfm','height='+setheight+', width='+setwidth+', resizable=yes, status=no, scrollbars=yes, left=0, top=0'));

	//window.location.href="exit.asp";

}