function openPopupEmulator(url, name, w, h, perc,sc)
{
	var winX = (screen.availWidth - w)*perc*.01;
	var winY = (screen.availHeight - h)*perc*.01;
	popupWin = window.open(url, name,'scrollbars=no,resizable=yes,status=yes,width=' + w + ',height=' + h + ',left=' + winX + ',top=' + winY);
	popupWin.focus()
}

function writeFromTo(source){
  if(document.getElementById && !document.all && document.getElementById(source)){
	  hideAll();
	  document.getElementById(source).style.position="relative";
  	document.getElementById(source).style.visibility="visible";
  }
  if(document.all && document.all[source]){
	  hideAll();
	  document.all[source].style.position="relative";
   	document.all[source].style.visibility="visible";
  }
}
function hideAll (){
	if(document.getElementById){
		document.getElementById("tab1").style.position="absolute";
		document.getElementById("tab1").style.visibility="hidden";
		document.getElementById("tab2").style.position="absolute";
		document.getElementById("tab2").style.visibility="hidden";
		document.getElementById("tab3").style.position="absolute";
		document.getElementById("tab3").style.visibility="hidden";
	}
	if(document.all){
		document.all["tab1"].style.position="absolute";
		document.all["tab1"].style.visibility="hidden";
		document.all["tab2"].style.position="absolute";
		document.all["tab2"].style.visibility="hidden";
		document.all["tab3"].style.position="absolute";
		document.all["tab3"].style.visibility="hidden";
	}
}
// -------------- function multipleOnload (){} provides multiple onload method

  navMac = (navigator.appVersion.indexOf("Mac")!=-1) ? true : false;
  navMacIE = ((document.all)&&(navMac)) ? true : false;
  navIE4 = ((document.all)&&(navigator.appVersion.indexOf("MSIE 4.")!=-1)) ? true : false;

  var multiArray = new Array();

  function multipleOnLoad(func){
  	if (navMac && navIE4) {
	   window.onload = ReadOnload;multiArray[multiArray.length] = func;
	}else if  (window.onload){
		if (window.onload != getPrev){
		   multiArray[0] = window.onload;window.onload = getPrev;
		}
		multiArray[multiArray.length] = func;
	}else window.onload = func;
   }

   function getPrev(){
    	for (var i=0;i<multiArray.length;i++) multiArray[i]();
   }

// end of MultipleOnload();

