// JavaScript Document
function More()
{
    document.getElementById("more").style.display=""
	document.getElementById("less").style.display="none"
}

function Less()
{
    document.getElementById("more").style.display="none"
	document.getElementById("less").style.display=""
}


function open_win(url_add)
   {
   	
	windowWidth = 500;
	windowHeight = 360;
	
	var centerWidth = (window.screen.width - windowWidth) / 2;
    var centerHeight = (window.screen.height - windowHeight) / 2;

   //window.open(url_add,'welcome','width=360,height=500,menubar=no,status=no,location=no,toolbar=no,scrollbars=no');
   window.open(url_add, 'welcome', 'scrollbars=yes, toolbar=no,location=no,status=no,menubar=no, resizable=0,width=' + windowWidth + ',height=' + windowHeight + ',left=' + centerWidth + ',top=' + centerHeight);

   }


function createRequestObject()
{
	var xmlhttp = false;
	try
	{
		xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
	}
	catch (e)
 	{
		try
		{
			xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  		}
		catch (E)
		{
			xmlhttp = false;
		}
 	}
	if (!xmlhttp && typeof XMLHttpRequest!='undefined')
	{
		xmlhttp = new XMLHttpRequest();
	}
	return xmlhttp;
}

function poll_results()
{
	alert("Please select an option to vote");
	return false;
	var d;
	d = document.poll;
	if(d.poll_answer.value==""){
			alert("Please select an option to vote");
			
			return false;
		}
/* if(data_type)
	{
		var request = createRequestObject();
		request.open("GET", "temp_fields.php?data_type=" + data_type + "&field_text=" + field_text );
		request.onreadystatechange = function()
		{
			if(request.readyState == 4)
			{
				if(request.status == 200)
				{
					var response = request.responseText;
					document.getElementById('temp_fields').innerHTML = response;
				}
			}
		}
		request.send(null);
	}*/
}


