/*----------------------------------------------------------------------------------------------------------------*/
function openWins(url,w,h,op){
		//alert(navigator.appName);
		var theWin,str_win,str_op;
		var x = (screen.availWidth-w)/2; 
		var y = (screen.availHeight-h)/2;
switch(op){
	case 0 : 
	str_op	 ="toolbar=0,location=0,directories=0,status=0,resizable=0,menubar=0,scrollbars=0,copyhistory=no"
	break;
	case 1 : 
	str_op	 ="toolbar=0,location=0,directories=0,status=0,resizable=0,menubar=0,scrollbars=1,copyhistory=no"
	break;	
	case 2 : 
	str_op	 ="toolbar=0,location=0,directories=0,status=0,resizable=0,menubar=1,scrollbars=0,copyhistory=no"
	break;	
	case 3 : 
	str_op	 ="toolbar=0,location=0,directories=0,status=0,resizable=1,menubar=1,scrollbars=1,copyhistory=no"
	break;	
	case 4 : 
	str_op	 ="toolbar=0,location=0,directories=0,status=1,resizable=0,menubar=0,scrollbars=0,copyhistory=no"
	break;	
	case 5 : 
	str_op	 ="toolbar=0,location=1,directories=0,status=1,resizable=1,menubar=1,scrollbars=1,copyhistory=no"
	break;		
	default :
	str_op	 ="toolbar=0,location=0,directories=0,status=0,resizable=0,menubar=0,scrollbars=0,copyhistory=no"	
	break;		
}
		
	switch(navigator.appName){
		case "Netscape" :str_win = "width="+w+",height="+h+",screenX="+x+",screenY="+y+str_op+""; break;
		case "Opera" :str_win =	"width="+w+",height="+h+",left="+x+",top="+(y/2)+str_op+""; break;			
		default :str_win =	"width="+w+",height="+h+",left="+x+",top="+y+str_op+"";break;  /*IE and  other */
	}
	// theWin.document.body.style.margin=0; 
	// theWin.document.body.style.padding=0;	
	if(op==6){
		theWin=window.open(url,'_blank', str_win);
	}else{
		theWin=window.open(url,null, str_win);		
	}
	if (theWin) { if (theWin.focus) {theWin.focus(); } return false; } 
	return theWin;		
}
/*----------------------------------------------------------------------------------------------------------------*/