function openwindow(url,winname,width,height,st){		var toolbar;	var location;	var directories;	var status;	var menubar;	var resizable;	var scrollbars;	var dependent;	st.charAt(0) == '1'	?  toolbar = 'yes' 		: toolbar = 'no';	st.charAt(1) == '1'	?  location = 'yes' 	: location = 'no';	st.charAt(2) == '1'	?  directories = 'yes' 	: directories = 'no';	st.charAt(3) == '1'	?  status = 'yes' 		: status = 'no';	st.charAt(4) == '1'	?  menubar = 'yes' 		: menubar = 'no';	st.charAt(5) == '1'	?  resizable = 'yes' 	: resizable = 'no';	st.charAt(6) == '1'	?  scrollbars = 'yes' 	: scrollbars = 'no';	st.charAt(7) == '1'	?  dependent = 'yes' 	: dependent = 'no';	var win_attr='toolbar=' + toolbar + ',location=' + location + ',directories=' + directories + ',status=' + status + ',menubar=' + menubar + ',resizable=' + resizable + ',scrollbars=' + scrollbars + ',dependent=' + dependent;		if(scrollbars == 'yes'){	var width_macIE=Number(width-16);	var height_macIE=Number(height-16);	}else{	var width_macIE=Number(width);	var height_macIE=Number(height);		}	var status_macIE = 'width=' + width_macIE+ ',height=' +height_macIE;	var status = 'width=' +width+ ',height=' + height;if(mac && ie){	wo=window.open(url,winname,status_macIE+','+win_attr);	wo.focus();}else {	wo=window.open(url,winname,status+','+win_attr);	wo.focus();	}}