/**
 * @author Zach
 */
function FS_SetSelectValue(szSelectID, szValue)
{
	var dObj = document.getElementById(szSelectID);
	var i = 0;
	
	if(dObj)
	{
		for(i = 0; i < dObj.options.length; i++)
		{
			if(dObj.options[i].value == szValue)
			{
				dObj.options[i].selected = true;
			}
		}
	}
}

function check_length(obj, next_obj) 
{
	var maxLength = 5
	if (!obj.maxLength || !obj.value || !obj.value.length) return true;
	if (obj.value.length >= obj.maxLength - 1) 
		window.setTimeout('document.frmOffer.elements["' + next_obj + '"].focus()', 0);
	
	return true;
}


function validate(dForm)
{
  with(dForm)
  {
    if(txtFname.trim() == "")
    {
	// something is wrong
	alert('Full Name required');
	return false;

     }
   }
   return true;
 }


