function IncludeJavaScript(jsFile)
	{
		document.write('			<script type="text/javascript" src="' + jsFile + '"></script>'); 
	}
function formatCurrency(num) 
	{
		num = num.toString().replace(/\$|\,/g,'');
		if(isNaN(num))
			num = "0";
			sign = (num == (num = Math.abs(num)));
			num = Math.floor(num*100+0.50000000001);
			cents = num%100;
			num = Math.floor(num/100).toString();
		if(cents<10)
			cents = "0" + cents;
			for (var i = 0; i < Math.floor((num.length-(1+i))/3); i++)
			num = num.substring(0,num.length-(4*i+3))+','+
			num.substring(num.length-(4*i+3));
		return (((sign)?'':'-') + '$ ' + num + '.' + cents);
	}
function ChangeRequestType()
	{
		if (document.frm.RequestType.value == '')
			{
				RequestText.innerHTML = "Question:";
			}
		else
			{
				RequestText.innerHTML = document.frm.RequestType.value + ':';
			}
	}
function verify()
	{
		var msg = '';
		var msgn = '';
		var msgl = '';
		var failed = false;
		
		if (document.frm.RequestType.value == '')
			{
				msg = msg + '\n     Type of Request';
				failed = true;
			}
		if (document.frm.companyname.value == '' && document.frm.contactname.value == '')
			{
				msg = msg + '\n     Company or Contact Name';
				failed = true;
			}
		if (document.frm.contactphone.value == '' && document.frm.cemail.value == '')
			{
				msg = msg + '\n     Contact Method (Phone or E-Mail)';
				failed = true;
			}
		if (document.frm.contactphone.value != '')
			{
				if (IsNumeric(document.frm.contactphone.value) == false)
					{
						msgn = msgn + '\n     Contact Phone';
						failed = true;
					}
				if (document.frm.contactphone.value.length != 10)
					{
						msgl = msgl + '\n     Contact Phone';
						failed = true;
					}
			}
		if (document.frm.textbody.value == '')
			{
				msg = msg + '\n     ' + RequestText.innerHTML;
				failed = true;
			}
		if (failed == true) 
			{
				if (msg != '')
					{
						msg = 'Please complete the following:' + msg;
						if (msgn != '' || msgl != '')
							{
								msg = msg + '\n\n';
							}
					}
				if (msgn != '')
					{
						msgn = 'The following need to be Numeric:' + msgn;
						msg = msg + msgn;
						if (msgl != '')
							{
								msg = msg + '\n\n';
							}
					}
				if (msgl != '')
					{
						msgl = 'The following phone numbers need to be 10-Digits Long:' + msgl;
						msg = msg + msgl;
					}
				alert( msg );
				return false;
			}
		else 
			{
				return true;
			}
	}
function IsNumeric(strString)
	{
		var strValidChars = "0123456789.";
		var strChar;
		var blnResult = true;

		if (strString.length == 0) return false;

		for (i = 0; i < strString.length && blnResult == true; i++)
			{
				strChar = strString.charAt(i);
				if (strValidChars.indexOf(strChar) == -1)
				   {
					   blnResult = false;
				   }
			}
		return blnResult;
	}
function OpenFeed(strURL)
	{
		window.open(strURL, "RSS_Feed_Window", "");
	}