function openWin(url, width, height)
{
	if(document.layers) var xMax = window.outerWidth, yMax = window.outerHeight;
	else var xMax = screen.width, yMax = screen.height;
    var xOffset = (xMax - width)/2;
	var yOffset = (yMax - height)/2;
	window.open('/'+url,'aviator','width='+width+',height='+height+',screenX='+xOffset+',screenY='+yOffset+',top='+yOffset+',left='+xOffset+',directories=no,location=no,menubar=no,scrollbars=no,status=no,toolbar=no,resizable=no');
}
function getHTTPObject()
{
	var C=null;
	try
	{
		C=new ActiveXObject("Msxml2.XMLHTTP")
	}
	catch(e)
	{
		try
		{
			C=new ActiveXObject("Microsoft.XMLHTTP")
		}
		catch(sc)
		{
			C=null
		}
	}
	if(!C&&typeof XMLHttpRequest!="undefined")
	{
		C=new XMLHttpRequest()
	}
	return C
}
function sendValidate()
{
	var err = 0;
	if(document.getElementById('sendUsWhat').selectedIndex == 0)
	{
		document.getElementById('sendUsWhat').style.backgroundColor = "#FFE5E5";
		err = 1;
	}
	else document.getElementById('sendUsWhat').style.backgroundColor = "";
	if(document.getElementById('sendUsMsg').value.length < 5 || document.getElementById('sendUsMsg').value == "Message...")
	{
		document.getElementById('sendUsMsg').style.borderColor = "#FF0000";
		err = 1;
	}
	else document.getElementById('sendUsMsg').style.borderColor = "";
	
	if(err == 1) return false;
}
function sendClearMsg() {
	if(document.getElementById('sendUsMsg').value == "Message...") document.getElementById('sendUsMsg').value = "";
}
function sendClearEmail() {
	if(document.getElementById('sendUsEmail').value == "E-mail (optional)") document.getElementById('sendUsEmail').value = "";
}