
// browser/ platform detection
var w3c=(document.getElementById)
var strPrintButtonALt = 'Print Page';

    
///////////////////////////////////////////////////////////////////////
// called from body onload event
function setUp()
{
	if (w3c)
	{
    // process print button
    printButton()
     }   
}
///////////////////////////////////////////////////////////
// draws print Print button if supported by browser
function printButton()
{

  if (document.getElementById("printButton"))
  {
    document.getElementById("printButton").innerHTML = "<a href='#' onclick='printPage()'><img src='/images/global/btn_print.gif' width='22' height='14' alt='" + strPrintButtonALt + "' border='0'></a>"
  }
}
    
function printPage()
{
	this.window.name = "home";
  popupWin = window.open('/print/index.htm', 'print', 'status=yes,resizeable=yes,scrollbars=yes,width=600,height=420')
  popupWin.focus()

}

function checkForm1()
{
	var bRetVal = true;
				var frm = document.form1;
				
				if(frm.first_name.value == '')
					bRetVal = false;
					
				if(frm.last_name.value == '')
					bRetVal = false;
					
				if(frm.address_1.value == '')
					bRetVal = false;
					
				if(frm.city.value == '')
					bRetVal = false;
					
				if(frm.county.value == '')
					bRetVal = false;
					
				if(frm.postcode.value == '')
					bRetVal = false;
					
				if(frm.email.value == '')
					bRetVal = false;
				
				if(!bRetVal)
					alert('One or more required field(s) were not completed.');
				return bRetVal;
}
