function fbList() {
document.write ('<iframe src="http://www.facebook.com/plugins/like.php?href='+location.href+'&amp;layout=standard&amp;show_faces=true&amp;width=450&amp;action=recommend&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:;margin-left:10px;"></iframe>');
}

function fbButton() {
document.write ('<iframe src="http://www.facebook.com/plugins/like.php?href='+location.href+'&amp;layout=button_count&amp;show_faces=false&amp;width=140&amp;action=recommend&amp;colorscheme=dark" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:140px; height:30px;float:right;;padding-top:15px;padding-left:10px;"></iframe>');
}
/*
Clear the postal code text field on focus
*/
function clearfield()
	{
	document.forms.search.PC.value='';
	}
	
	/*
Validate the search form entries for postal code and subject
*/

function validate()
	{
	var zip = document.forms.search.PC.value;  
	var subject = document.forms.search.sub.value;
	var flag_zip = false;
	var flag_sub = false;
	document.getElementById('error1').innerHTML = '';
	document.getElementById('error2').innerHTML = '';

	if (zip != null && (zip.length) == 5 && ((zip.indexOf(0) == 0) || (parseInt(zip) == zip)))
	{
		flag_zip = true;
	}	  
		if (subject != 'none' ) 
	{ 
		flag_sub = true;
	}
		   
	if (!(flag_zip))
		document.getElementById('error1').innerHTML = 'Valid Zip Required';
		
	if (!(flag_sub))	
		document.getElementById('error2').innerHTML = 'Subject Required';
		
	if (!(flag_zip && flag_sub))
		{return (false);}
	
	else 
		document.forms.search.submit();	
	}	
	
/*
Intercept the form values submitted from search form and pass them to the iframe
*/

