function openPopup(url, name, w, h, perc, sc, res) 
{        
	var winX = (screen.availWidth - w)*perc*.01;        
	var winY = (screen.availHeight - h)*perc*.01;
	popupWin = window.open(url, name,'scrollbars='+sc+', resizable='+res+', width=' + w + ', height=' + h + ', left=' + winX + ', top=' + winY);
	popupWin.focus()
}

function openPopup2(url, name, w, h, perc, sc, res) 
{        
	var winX = (screen.availWidth - w)*perc*.01;        
	var winY = (screen.availHeight - h)*perc*.01;        
	popupWin = window.open(url, name,'scrollbars='+sc+',resizable='+res+',width=' + w + ',height=' + h + ',left=' + winX + ',top=' + winY);
	popupWin.focus()
}

function openPopup3(url, name, w, h, perc , sc, res) 
{
	var winX = (screen.availWidth - w)*perc*.01;        
	var winY = (screen.availHeight - h)*perc*.01;        
	popupWin = window.open(url, name, 'menubar=no, toolbar=no, location=no, scrollbars=yes, resizable=no, status=no, '+'width=' + w + ', height=' + h + ', left=' + winX + ', top=' + winY)
	popupWin.focus()
}

function openPopupSC(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=yes, resizable=yes, width=' + (w+17) + ', height=' + h + ', left=' + winX + ', top=' + winY);
	popupWin.focus()
}

// 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]();
    	 }
   }

function getPrev(){
	for (var i=0;i<multiArray.length;i++) multiArray[i]();
}

// end of MultipleOnload();