function CheckCBoxValue(cbox,csbox,ColorTrue,ColorFalse) 
{
 	if (document.getElementById(cbox).checked==true)
 	{
		document.getElementById(csbox).style.backgroundColor = ColorTrue;
	}
	else
	{
		document.getElementById(csbox).style.backgroundColor = ColorFalse;
	};
};

function FWDPage(tlink)
{
	try
 	{
		window.location.replace(tlink);
	}
	catch (e)
	{
		this.location.href = tlink;
	};
};

function del_confirm(conftxt,tlink)
{
	var r=confirm(conftxt);
	if (r==true)
	{
	 	try
	 	{
			window.location.replace(tlink);
		}
		catch (e)
		{
			this.location.href = tlink;
		};
	};
};

function show_varlist(valid,listvar,listidvar)
{
	
};

function MainMenuPos(posID,ChangeBox)
{
 	document.getElementById(ChangeBox).innerHTML = "<object style='border: 1px solid #e05090;' classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0' id='in process...' width='{$BannerWidth}' height='{$BannerHeight}' /><param name='movie' value='/specpics/runningbar.swf' /><param name='quality' value='high' /><embed src='/specpics/runningbar.swf' quality='high' name='in process...' width='195' height='10' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer'></embed></object>"; 	
	try
  	{
	   xmlHttp=new XMLHttpRequest();  // Firefox, Opera 8.0+, Safari
	}
	catch (e) // Internet Explorer 
  	{  
		try
    	{
			xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
		}
  		catch (e)
    	{
			try   	
      		{
				xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
			}
			catch (e)
			{
				alert("Your browser does not support AJAX!");
				return false;      
			};
		};
	};
	xmlHttp.onreadystatechange=function()
	{
		if(xmlHttp.readyState==4)
		{
			document.getElementById(ChangeBox).innerHTML = xmlHttp.responseText;
		};
	};
	xmlHttp.open("GET",posID,true);
	xmlHttp.send(null);
};
