/*
	url - The URL of the page to open. Example: "http://scriptasylum.com".
	w - The width of the window in pixels.
	h - The height of the window in pixels (doesn't include menubars).
	tb - Toolbar visible? 1 = yes, 0 = no.
	stb - Status bar visible? 1 = yes, 0 = no.
	L - Linkbar visible? 1 = yes, 0 = no.
	mb - Menubar visible? 1 = yes, 0 = no.
	sb - Scrollbars visible? 1 = yes, 0 = no.
	rs - Resizable window? 1 = yes, 0 = no.
	x - The horizontal position of the window from the left of the screen.
	y - The vertical position of the window from the top of the screen.
	
	"javascript:openWindow('/register.php', 750, screen.availHeight, 0, 0, 0, 0, 1, 1, screen.width/2 - 375, 0);"
*/
function openWindow(url,w,h,tb,stb,l,mb,sb,rs,x,y){
	var t=(document.layers)? ',screenX='+x+',screenY='+y: ',left='+x+',top='+y; //a little cross-browser code for window positioning
	tb=(tb)?'yes':'no'; stb=(stb)?'yes':'no'; l=(l)?'yes':'no'; mb=(mb)?'yes':'no'; sb=(sb)?'yes':'no'; rs=(rs)?'yes':'no';
	var x=window.open(url, 'newWin'+new Date().getTime(), 'scrollbars='+sb+',width='+w+',height='+h+',toolbar='+tb+',status='+stb+',menubar='+mb+',links='+l+',resizable='+rs+t);
	x.focus();
}