var exit=true;
//var closed=false;

function popup(url,toolbar,menubar,scrollbars,status,resizable,location,blur,width,height,title) {
date = new Date();

   winParam = 'toolbar='+toolbar+',menubar='+menubar+',scrollbars='+scrollbars+',status='+status+',resizable='+resizable+',location='+location;
   if (width) { winParam += ',width='+width; }
   if (height) { winParam += ',height='+height; }


   if (exit == true) {
	if (title == null) { title = date.getTime(); } 
	myWin = window.open(url,title,winParam);
	if (!myWin) { 
		closed = true; 
	
	} else {
		if (blur == true) { myWin.blur();}
	}
   }
}

function popup2(url,width,height) {
sFeatures = '';
if (width) { sFeatures += 'dialogWidth:'+width+'px;'; }
if (height) { sFeatures += ',dialogHeight:'+height+'px;'; }
sFeatures += 'resizable:yes;scroll:yes;status:yes;help:no;';

   if (closed) {
	window.showModalDialog(url,'', sFeatures);
   }
}

function checkFields()
{	
if(document.ageverify.user_age.value=="")
{window.alert("Please enter your age");
return (false);
}

if(document.ageverify.user_age.value < 18)
{self.parent.location="http://www.yahoo.com";
return (false);
}

if (isNaN(document.ageverify.user_age.value)) {
alert("Please enter your age")
return (false);
}

return true; 
}

function bookmark(url, description) {
  netscape="Netscape User's hit CTRL+D to add a bookmark to this site."
  if (navigator.appName=='Microsoft Internet Explorer') {
    window.external.AddFavorite(url, description);
  } else if (navigator.appName=='Netscape') {
    alert(netscape);
  }
}
