function openWin(URL,width,height,winName,scroll,resize, status, menubar, toolbar, location, directories) {
	noUrl = false	
	if (URL == "" || URL == null) { URL="about:blank"; noUrl=true }
	if (width == "" || width == null ) { width = 640 }
	if (height == "" || height == null ) { height = 480 }
	if (width == "*" ) { 
		width = (screen.availWidth * (100/99)) ;
		if (width > 800) width="800"; //since the site isn't wider than 800px, there's no point in opening in fullscreen mode, it just looks silly!
	}
	if (height == "*" ) { 
	height =  (screen.availHeight * (100/95));
		if (height > 580) height="580";//since the site isn't taller than 800px, there's no point in opening in fullscreen mode, it just looks silly!
	}
	if (scroll == "" || scroll == null ) { scroll = 1 }
	if (resize == "" || resize == null ) { resize = 0 }
	if (status == "" || status == null ) { status = 0 }
	if (menubar == "" || menubar == null) {menubar=0}
	if (toolbar == "" || toolbar == null) {toolbar=0}
	if (location == "" || location == null) {location=0}
	if (directories == "" || directories == null) {directories=0}
	if (winName == "" || winName == null) {winName="NEW"}
	
		
	if (winName == "" || winName == null) {winName="NEW"}
		
	PARMS = 'toolbar='+toolbar +',location='+location +',directories='+directories +',status='+status +',menubar='+menubar +',scrollbars=' + scroll + ',resizable=' + resize + ',width=' + width + ',height=' + height
  var newWin = window.open(URL,winName,PARMS);
	/* newWin.screenX = 0;
  newWin.screenY = 0; */
	if (noUrl) {
		newWin.document.writeln("<BR><BR><FONT color='red'>It seems like you forgot to put in a value for URL when you called for <I>openWin()</I></FONT>")
		newWin.document.close()
	}
	newWin.focus();
	return;
}



function openWinDefault(URL) 
{
	var PARMS = "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=' no,width=230,height=250"	
	var newWin = window.open(URL,"NEW",PARMS);
	newWin.focus();
	return;
}

function openNewsletter(language) 
{
	openWin('/'+language+'/iaaw/newsletter',240,330,'news'+Math.round( Math.random()*1000 ) ,''); 
}

function openFamilytree(arg,language) 
{
	openWin('/'+language+'/iaaw/familytree?visionid='+arg,450,500,'tree'+Math.round( Math.random()*1000 )); 
}

function openReport(arg,language) 
{
	openWin('/'+language+'/iaaw/report?'+arg+'&name='+'abuse'+Math.round( Math.random()*1000 ),230,240,'abuse'+Math.round( Math.random()*1000 ),'');
}

  
function openFlashTerms(language)
{
	openWin('/'+language+'/iaaw/termsflash/',500,500,'termsflash'+Math.round( Math.random()*1000 ),'1');
}





