function setMenu() 
{
	if (sec != "")
	{
		var s = sec;
		var obj = document.getElementById(s);
		if (obj)
		{
			obj.style.background = '#E6EAFF';
			obj.style.textDecorationUnderline = false;
			obj.style.padding ='10px';
			obj.style.borderBottom ='1px dotted #2E3090';
			obj.style.width='160px';
			obj.style.font='11px verdana';
			obj.style.textAlign = 'center';
			obj.style.display = 'block';
			obj.style.color = '#996633';
		}
	}
}


function checkForm(form)
{
	if (!form.elements["From"].value) 
	{
		alert("Your name is a required field");
		form.elements["From"].focus();
		return false;
	}
	if (!form.elements["Email"].value) 
	{
		alert("Your email is a required field");
		form.elements["Email"].focus();
		return false;
	} 
	if (form.elements["Email"].value != "" && ! /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(form.elements["Email"].value)) 
	{
		alert("Email address is invalid");
		form.elements["Email"].value = "";
		form.elements["Email"].focus();
		return false;
	}
	if (!form.elements["codeMatch"].value) 
	{
		alert("Captcha is a required field");
		form.elements["codeMatch"].focus();
		return false;
	} 
} 
	
	
function Fo(w, h, ver, path, displaydiv, xmlfile) 
{
	var bannerObj = document.getElementById(displaydiv);
	var fj = new Array();
	fj.push("<object type=\"application/x-shockwave-flash\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version="+ver+",0,0,0\" width='"+w+"' height='"+h+"'>");
	fj.push("<param name=movie value='" + path + "' />"); 
  	fj.push("<param name=menu value=false />"); 
	fj.push("<param name=FlashVars value=xml="+xmlfile+" />");
 	fj.push("<param name=quality value=best />"); 
	fj.push("<param name=scale value=exactfit />");
	fj.push("<param name=wmode value=transparent />");
 	fj.push("<embed src='" + path + "' menu=false flashvars=xml="+xmlfile+" wmode=transparent quality=best scale=exactfit pluginspage=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\" type=\"application/x-shockwave-flash\" width='"+w+"' height='"+h+"'></embed></object>"); 
	var writefj = fj.join('');
	bannerObj.innerHTML=writefj;
};
	
	
function init() {
	setMenu();
}

window.onload = function() {
	init();
}
