// JavaScript Document
			var cacheBuster = "?t=" + Date.parse(new Date());
			// stage dimensions		
			var stageW = "100%";//"100%";
			var stageH = "100%";//"100%";
			
			
			// ATTRIBUTES
			var attributes = {};
			attributes.id = 'FlabellComponent';
			attributes.name = 'FlabellComponent';

			// PARAMS
			var params = {};
			params.bgcolor = "#ffffff";
		    params.menu = "false";
		    params.scale = 'noScale';
		    params.wmode = "transparent";
		    params.allowfullscreen = "true";
		    params.allowScriptAccess = "always";			
			
			
			/* FLASH VARS */
			var flashvars = {};
			
			/// if commented / delete these lines, the component will take the stage dimensions defined 
			/// above in "JAVASCRIPT SECTIONS" section or those defined in the settings xml
		    flashvars.componentWidth = stageW;
			flashvars.componentHeight = stageH;
			
			/// path to the content folder(where the xml files, images or video are nested)
			/// if you want to use absolute paths(like "http://domain.com/images/....") then leave it empty("")			
			flashvars.pathToFiles = "banner/";
			
			// path to content XML
			flashvars.xmlPath = "xml/banner.xml";
			
			
			/** EMBED THE SWF**/
			swfobject.embedSWF("banner.swf"+cacheBuster, attributes.id, stageW, stageH, "9.0.124", "js/expressInstall.swf", flashvars, params, attributes);


function validateForm1(contact1)
{

 
 
  pass = 1; //assume everything is ok
  msg = "The following problems were found when trying to submit this form:\n\n";


  if (isEmpty(contact1.name.value))
  {
    msg = msg + "- Name cannot be empty\n";
    pass = 0;
  }
  

   
  if (isEmpty(contact1.email.value))
  {
    msg = msg + "- Email cannot be empty\n";
    pass = 0;
  }
   if (isEmpty(contact1.quote.value))
  {
    msg = msg + "- Quotaion for cannot be empty\n";
    pass = 0;
  }
    if (isEmpty(contact1.about.value))
  {
    msg = msg + "- About cannot be empty\n";
    pass = 0;
  }
  
  if (!(isEmail(contact1.email.value)))
  {
    msg = msg + "- Please enter a valid email address\n";
    pass = 0;
  }
    if(document.contact1.phone.value.length >10 || document.contact1.phone.value.length <10)
  {
   msg = msg + "- Enter 10 digit phone number\n";
    pass = 0;
  }

   if(!isNum(contact1.phone.value))
   {
   
    msg = msg + "-  Use Numeric Characters only in Phone Number\n";
    pass = 0;
   }
  
  
   if (pass == 1)
  {
    return true;
  }
  else
  {
    alert(msg);
    return false;
  }
}

// validators ------------------------------------------------------------------
	
function isEmpty (s) {
	var p = /\S+/;
	return !p.test(s);
}

function isEmail(string) {
    if (string.search(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/) != -1)
        return true;
    else
        return false;
}


function isNum(string) {
    if (string.search(/^[0-9]+$/) != -1)
        return true;
    else
        return false;
	
}


function validateForm2(contact2)
{

 
 
  pass = 1; //assume everything is ok
  msg = "The following problems were found when trying to submit this form:\n\n";


  if (isEmpty(contact2.name.value))
  {
    msg = msg + "- Name cannot be empty\n";
    pass = 0;
  }
  

   
  if (isEmpty(contact2.email.value))
  {
    msg = msg + "- Email cannot be empty\n";
    pass = 0;
  }
   if (isEmpty(contact2.quote.value))
  {
    msg = msg + "- Quotaion for cannot be empty\n";
    pass = 0;
  }
    if (isEmpty(contact2.about.value))
  {
    msg = msg + "- Query cannot be empty\n";
    pass = 0;
  }
  
  if (!(isEmail(contact2.email.value)))
  {
    msg = msg + "- Please enter a valid email address\n";
    pass = 0;
  }
    if(document.contact2.phone.value.length >10 || document.contact2.phone.value.length <10)
  {
   msg = msg + "- Enter 10 digit phone number\n";
    pass = 0;
  }

   if(!isNum(contact2.phone.value))
   {
   
    msg = msg + "-  Use Numeric Characters only in Phone Number\n";
    pass = 0;
   }
   
  
   if (pass == 1)
  {
    return true;
  }
  else
  {
    alert(msg);
    return false;
  }
  
}

// validators ------------------------------------------------------------------
	
function isEmpty (s) {
	var p = /\S+/;
	return !p.test(s);
	
}

function isEmail(string) {
    if (string.search(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/) != -1)
        return true;
    else
        return false;
			
}


function isNum(string) {
    if (string.search(/^[0-9]+$/) != -1)
        return true;
    else
        return false;
		
	
}


function validateForm(contact)
{

 
 
  pass = 1; //assume everything is ok
  msg = "The following problems were found when trying to submit this form:\n\n";


  if (isEmpty(contact.fname.value))
  {
    msg = msg + "- First Name cannot be empty\n";
    pass = 0;
  }
  
  if (isEmpty(contact.lname.value))
  {
    msg = msg + "- Last Name cannot be empty\n";
    pass = 0;
  }
   
  if (isEmpty(contact.email.value))
  {
    msg = msg + "- Email cannot be empty\n";
    pass = 0;
  }
  
  if (!(isEmail(contact.email.value)))
  {
    msg = msg + "- Please enter a valid email address\n";
    pass = 0;
  }
    if (isEmpty(contact.phone.value))
  {
    msg = msg + "- Phone cannot be empty\n";
    pass = 0;
  }
    if (isEmpty(contact.address.value))
  {
    msg = msg + "- Address cannot be empty\n";
    pass = 0;
  }
  
  
  if (isEmpty(contact.comments.value))
  {
    msg = msg + "- Comments cannot be empty\n";
    pass = 0;
  }

  
   if (pass == 1)
  {
    return true;
  }
  else
  {
    alert(msg);
    return false;
  }
}

  if(document.contact.phone.value.length >10 || document.contact.phone.value.length <10)
  {
   msg = msg + "- Enter 10 digit phone number\n";
    pass = 0;
  }

   if(!isNum(contact.phone.value))
   {
   
    msg = msg + "-  Enter valid phone number\n";
    pass = 0;
   }
   

  


// validators ------------------------------------------------------------------
	
function isEmpty (s) {
	var p = /\S+/;
	return !p.test(s);
}

function isEmail(string) {
    if (string.search(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/) != -1)
        return true;
    else
        return false;
}


function isNum(string) {
    if (string.search(/^[0-9]+$/) != -1)
        return true;
    else
        return false;
	
}


