// JavaScript Document

<!--
function ValidateSignIn()
{	
	var msg = "";
	if(document.frmSignIn.UserName.value == "")
	{
		msg += "Your User Name is required.\n";
	}
	if(document.frmSignIn.Password.value == "")
	{
		msg += "Your Password is required.\n";
	}
	if(msg != "")
	{
		msg = "Please correct the following error(s):\r\n--------------------------------------------\r\n" + msg;
		alert(msg);
		return false;
	}
	return true;
}

function Validate()
{
	var msg = "";
	var Responses = document.frmPoll.PollResponse.length;
	var Responded = false;
	
	for(var i = 0; i < Responses; i++)
	{
		if(document.frmPoll.PollResponse[i].checked)
		{
			Responded = true;
		}
	}
	if(!Responded)
	{
		msg += "Please select an option.\n";	
	}
	if(msg != "")
	{
		msg = "Please correct the following error(s):\r\n--------------------------------------------\r\n" + msg;
		alert(msg);
		return false;
	}
	document.frmPoll.submit();
	return true;
}

function ShowResults(PollID)
{
	window.open("/community/PollResults.asp?PollID="+PollID,'PollResults','width=300,height=300');
}

function resize() 
{
	var iframe = document.all.ifrmPDGForum;
	iframe.height = document.frames("ifrmPDGForum").document.body.scrollHeight - 15;
}

function MozillaCheck()
{
	//this.height=this.contentDocument.height
	var iframe = document.all.ifrmPDGForum;
	if(iframe.contentDocument)
	{
		iframe.height = iframe.contentDocument.height;
	}
}
//-->