function MoveLayerUpDown(x)
{
	
	if(document.local_info_form1.local_val.value==0)
	{
		Local_MoveLayerUpDown(this);
	}
	
	if(document.form1.val.value==1)
	{
		hide('local_info_layer1');
		//MM_showHideLayers('Layer_dropdown','','show');
		flvFSL1('Layer1',20,190,20,0,0);
		document.form1.val.value=0;
		//MM_showHideLayers('Layer2','','show');
		//document.getElementById('bg').innerHTML="<IMG SRC=\"images/button_send.gif\" BORDER=\"0\" onclick=\"MoveLayerUpDown(this);\">";  
	}
	else
	{
		 hide('local_info_layer1');
		 //MM_showHideLayers('Layer_dropdown','','show');
		//MM_showHideLayers('Layer2','','hide');
		flvFSL1('Layer1',-740,190,30,0,0);
		document.form1.val.value=1;
		//document.getElementById('bg').innerHTML="<IMG SRC=\"images/button_amend_search.gif\" BORDER=\"0\" onclick=\"MoveLayerUpDown(this);\">";  
	}
	
}

function Local_MoveLayerUpDown(x)
{
	if(document.form1.val.value==0)
	{
		MoveLayerUpDown(this);
	}
	
	if(document.local_info_form1.local_val.value==1)
	{
		MM_showHideLayers('Layer_dropdown','','show');
		flvFSL1('local_info_layer1',20,150,20,0,0);
		document.local_info_form1.local_val.value=0;
		//MM_showHideLayers('Layer2','','show');
		//document.getElementById('bg').innerHTML="<IMG SRC=\"images/button_send.gif\" BORDER=\"0\" onclick=\"MoveLayerUpDown(this);\">";  
	}
	else
	{
		 MM_showHideLayers('Layer_dropdown','','show');
		//MM_showHideLayers('Layer2','','hide');
		flvFSL1('local_info_layer1',-740,150,30,0,0);
		document.local_info_form1.local_val.value=1;
		//document.getElementById('bg').innerHTML="<IMG SRC=\"images/button_amend_search.gif\" BORDER=\"0\" onclick=\"MoveLayerUpDown(this);\">";  
	}
	
}


function checkRequiredFields(input)	
{
	// this is for the text area
		//check for blank feilds
		if(!CheckBlankField(document.share_additional_info_frm.full_name,'Full Name'))return (false)
	//check email
		if(!CheckBlankField(document.share_additional_info_frm.email_address,'Email Address'))return (false)
		var emailID=document.share_additional_info_frm.email_address;
		if ((emailID.value==null)||(emailID.value==""))
		{
			alert("Please Enter your Email Address");
			emailID.focus();
			return false;
		}
		if (echeck(emailID.value)==false)
		{
			emailID.value="";
			emailID.focus();
			return false;
		}
		
	if(!CheckBlankField(document.share_additional_info_frm.additional_info,'Your Additional Info'))return (false)
	if(!CheckBlankField(document.share_additional_info_frm.hello_spammers,'Security Code'))return (false)
	
	submitonce(input);
	
}