function windowOpen( halamanBuka, nama, width, height, pos) 
{ 
	x=0; 
	y=0;  	
	if ((parseInt(navigator.appVersion) >= 4 ) && pos==1)
	{  		
		x = (screen.width - width) / 2;  	
		y = (screen.height - height) / 2;      	
	}      	

	if ((parseInt(navigator.appVersion) >= 4 ) && pos==2)
	{  		
		x = (screen.width - width);  	
		y = (screen.height - height) / 2;      	
	}      	
	if ((parseInt(navigator.appVersion) >= 4 ) && pos==3)
	{  		
		x = 0;  	
		y = (screen.height - height) / 2;      	
	}
		if ((parseInt(navigator.appVersion) >= 4 ) && pos==4)
	{  		
		x = 380;  	
		y = (screen.height - height) / 2;      	
	}
		if ((parseInt(navigator.appVersion) >= 4 ) && pos==5)
	{  		
		x = 340;  	
		y = (screen.height - 360) / 2;     	
	}
	if ((parseInt(navigator.appVersion) >= 4 ) && pos>5)
	{  		
		x = pos;  	
		y = (screen.height - height) / 2;      	
	}


	etc = "width="+width+","+"height="+height+","+"location=0,"+"menubar=0,"+"scrollbars=1";
	etc = etc +"resizable=0,"+","+"status=0,"+"titlebar=0,"+"toolbar=0,"+"hotkeys=0,";
	etc = etc +"screenx="+x+","+"screeny="+y+","+"left="+x+ ","+ "top=" + y;

	window.open( halamanBuka,nama,etc );      
}      

