function popupUpload(url,w,h){
		 var windowprops = "location=no,scrollbars=yes,menubars=yes,toolbars=yes,resizable=yes,left=50,top=50,width=" + w + ",height=" + h;
		 var sURL =  url;
		 popup = window.open(sURL,"MenuPopup",windowprops);
}
function formHandler(form){
		var URL = form.memoryselector.options[form.memoryselector.selectedIndex].value;
		window.location.href = URL;
}
function mfcChoice(daLetter) {
				 document.mfcList.mfcPicked.value = daLetter;
				 document.mfcList.submit();
}
function checkPuter() {
			 if (navigator.appVersion.indexOf("Win")!=-1) {
						location.href = "http://w4s.work4sure.com/f/opendetectionpagemin.js";
				 } 
				 else {
							alert("Currently this check is only for computers running on Windows. Please contact customer service or tech support for further assistance.");
				 }
}
function ChangeImage( nImgID, sImgSrc ) {
		 if(document.images) {
			document.images[ nImgID ].src = sImgSrc;
		 }
}	
function getObj(name)	{
	  if (document.getElementById)	{    	// DOM level 1 browsers: IE 5+, NN 6+
	  	 	this.obj = document.getElementById(name);
			  this.style = document.getElementById(name).style;
	  }
	  else if (document.all)	{  			// IE 4
				this.obj = document.all[name];
				this.style = document.all[name].style;
	  }
	  else if (document.layers)  { 			// NN 4
	   		this.obj = document.layers[name];
	   		this.style = document.layers[name];
	  }
}

// this function makes it visible
function showIt(visiblechunk) {
//		if (!DHTML){
//		 alert ('Sorry, your browser is not compat!');
//		 return;
//		}
		var displayIt = new getObj(visiblechunk);
		displayIt.style.visibility = 'visible';
}
	
// this function makes it invisible	
function hideIt(invisiblechunk) {
//		if (!DHTML){
//		 alert ('Sorry, your browser can\'t hide the bunny!');
//		 return;
//		}
	
		var shadeIt = new getObj(invisiblechunk);	
		shadeIt.style.visibility = 'hidden';
}
