function GetXmlHttpObject()
{
var xmlHttp=null;
try
  {
  // Firefox, Opera 8.0+, Safari
  xmlHttp=new XMLHttpRequest();
  }
catch (e)
  {
  // Internet Explorer
  try
    {
    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
    }
  }  
return xmlHttp;
}

function Set_Cookie( name, value, expires, path, domain, secure ) 
{
// set time, it's in milliseconds
var today = new Date();
today.setTime( today.getTime() );

/*
if the expires variable is set, make the correct 
expires time, the current script below will set 
it for x number of days, to make it for hours, 
delete * 24, for minutes, delete * 60 * 24
*/
if ( expires )
{
expires = expires * 1000 * 60 * 60 * 24;
}
var expires_date = new Date( today.getTime() + (expires) );

document.cookie = name + "=" +escape( value ) +
( ( expires ) ? ";expires=" + expires_date.toGMTString() : "" ) + 
( ( path ) ? ";path=" + path : "" ) + 
( ( domain ) ? ";domain=" + domain : "" ) +
( ( secure ) ? ";secure" : "" );
}

function display_banner(div_id, object_id, div_width, div_height, banner_name, banner_bg)
{
	var x;
	try
	{

		x ="<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' style='z-index:1;' width='"+div_width+"' height='"+div_height+"' id='"+object_id+"' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' WIDTH='" + div_width + "' HEIGHT='" + div_height + "' title='" + div_id + "' id='" + object_id + "'>";
		x+="<param name='movie' value='"+banner_name+"' />";
		x+="<param name='quality' value='high' />";
		x+="<PARAM NAME='wmode' VALUE='transparent' />";
		x+="<param name='bgcolor' value='" + banner_bg+"' />";
		x+="<embed src='"+banner_name+"' wmode='transparent' quality='high' bgcolor='"+banner_bg+"' width='"+div_width+"' height='"+div_height+"' type='application/x-shockwave-flash' PLUGINSPAGE='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash'></embed>";
		x+="</object>";
		
		eval("document.getElementById('"+div_id+"').innerHTML=\""+x+"\";");
	}
	catch(ex)
	{
	}
}

/* clear_field Function */
function clear_field(sel_id, sel_option, sel_text)
 {
  eval("obj=document.getElementById('"+sel_id+"');");
  if ((sel_option=="1") && (obj.value==""))
     { obj.value=sel_text; }
     
  if ((sel_option=="0") && (obj.value==sel_text))
     { obj.value=""; }
 }
