function writeFl(){
	document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"  codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"  WIDTH="100%" HEIGHT="100%" id="page1" ALIGN="">  <PARAM NAME=movie VALUE="page1.swf"> <PARAM NAME=menu VALUE=false> <PARAM NAME=quality VALUE=high> <PARAM NAME=scale VALUE=noscale> <PARAM NAME=wmode VALUE=transparent> <PARAM NAME=bgcolor VALUE=#FFFFFF> <EMBED src="page1.swf" menu=false quality=high scale=noscale wmode=transparent bgcolor=#FFFFFF  WIDTH="100%" HEIGHT="100%" NAME="page1" ALIGN=""  TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED> </OBJECT>');
	
}

function getXMLHttpObj(){
	if(typeof(XMLHttpRequest)!="undefined"){
		return new XMLHttpRequest();
	}
	var axo=['Msxml2.XMLHTTP.6.0', 'Msxml2.XMLHTTP.4.0', 'Msxml2.XMLHTTP.3.0', 'Msxml2.XMLHTTP', 'Microsoft.XMLHTTP'], i;
	for(i=0;i<axo.length;i++)
		try{
			return new ActiveXObject(axo[i]);
		}catch(e){}
	
	alert("Your browser does not support AJAX.\nTo view this page, please use the \n'no flash' button in the top right of\nyour screen.");
	
	return null;
}


var ptimer;
var pge;
var closebx='<div id="clse"><a href="./" onclick="hide();return false"><img src="images/cross.gif" height="21" width="21" alt="close" style="border:0;" /></a></div><div id="clse2">&raquo; <a href="./" onclick="hide();return false">close</a> &laquo;</div>';
var reqtyp="GET";
var formdat="";


function nWin(p){

	pge=p;
	document.getElementById('content').innerHTML='<p><strong style="font-size:1.3em;">Loading...</strong></p>'+closebx;
	document.getElementById('cover').style.cursor="wait";
	document.getElementById('cover').style.display="block";

	ptimer = setInterval("fillpage()",1000);
	
}

function fillpage(){

	clearInterval(ptimer);
	
	var oXML = getXMLHttpObj();
	oXML.open(reqtyp, pge, false);
	if(reqtyp=="POST"){
		oXML.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
	}
	oXML.send(formdat);
	document.getElementById('content').innerHTML=oXML.responseText+closebx;
	document.getElementById('cover').style.cursor="auto";
	
	reqtyp="GET";
	formdat="";

}




function hide(){
	document.getElementById('cover').style.display="none";
}


function subit(v,t){

	f=document.f1;
	var ok=1;
	var bad;

	for(i=0;i<f.elements.length;i++){

		if(f[i].type!="submit" && f[i].type!="hidden" && f[i].type!="button"){
			if(f[i].value==""){
				f[i].style.borderColor="red";
				f[i].style.backgroundColor="#FFCCCC";
				ok=0;
				if(typeof(bad)=="undefined"){
					bad=i;
					errmess = "Some information was missing. Please check your request again.";
				}
			}
			else if(f[i].name=="e_add"){
				echk = f[i].value.match(/[a-zA-Z0-9._-]+@[a-zA-Z0-9._-]+\.[a-zA-Z0-9._-]+/gi);
				if(!echk || f[i].value.indexOf('@')!= f[i].value.lastIndexOf('@')){
					f[i].style.borderColor="red";
					f[i].style.backgroundColor="#FFCCCC";
					ok=0;
					if(typeof(bad)=="undefined"){
						bad=i;
						errmess = "Please enter a valid email address";
					}
				}
				else{
					f[i].value=echk;
					f[i].style.borderColor="#888888";
					f[i].style.backgroundColor="#E8E8E8";
				}
			}
			else{
				f[i].style.borderColor="#888888";
				f[i].style.backgroundColor="#E8E8E8";			
			}
		}
	
	}
	
	if(!ok){
	
		if(document.getElementById){
			document.getElementById('warn').style.display="block";
			document.getElementById('warn').innerHTML=errmess;
		}
		
		f[bad].focus();
	}
	else if(v){

		if(f.cid){
			f.cid.value=f.cid.value.replace("&","|");
		}
		
		formdat="page="+v;

		for(g=0;g<f.elements.length;g++){

			if(f[g].type!="submit" && f[g].type!="button"){

				formdat+="&"+f[g].name+"="+f[g].value;

			}
		}

		reqtyp="POST";
		nWin(t);

	}
	else{
		return true;
	}

	return false;
}