
browser_version= parseInt(navigator.appVersion);
browser_type = navigator.appName;
/*if (browser_type == "Microsoft Internet Explorer" && (browser_version >= 4))
{ */
document.write('<style type="text/css">');
document.write('html ');
document.write('{scrollbar-arrow-color: #999999;scrollbar-background-color: #F7F7F2;scrollbar-darkshadow-color: #F7F7F2;');
document.write('scrollbar-track-color: #F7F7F2;scrollbar-face-color: #F7F7F2;scrollbar-shadow-color: #F7F7F2;');
document.write('scrollbar-highlight-color: #F7F7F2;scrollbar-3dlight-color: #F7F7F2;}');
document.write('</style>');
/*} */ 



function externalLinks() {
if (!document.getElementsByTagName) return;
var anchors = document.getElementsByTagName("a");
for (var i=0; i<anchors.length; i++) {
var anchor = anchors[i];
if (anchor.getAttribute("href") &&
anchor.getAttribute("rel") == "external")
anchor.target = "_blank";
}
}

window.onload = externalLinks;



function isEmailAddr(email)
{
  var result = false
  var theStr = new String(email)
  var index = theStr.indexOf("@");
  if (index > 0)
  {
    var pindex = theStr.indexOf(".",index);
    if ((pindex > index+1) && (theStr.length > pindex+1))
	result = true;
  }
  return result;
}

function CheckForm2( theform )

{

var result = false
  var theStr = new String(theform.email)
  var index = theStr.indexOf("@");

	var bMissingFields = false;
	var strFields = "";

	if( theform.name.value == '' ){
		bMissingFields = true;
		strFields += "     Name\n";
	}

	if( theform.phone.value == '' ){
		bMissingFields = true;
		strFields += "     Phone\n";
	}
	if( theform.email.value == '' ){
		bMissingFields = true;
		strFields += "     Email\n";
	}

  if (!isEmailAddr(theform.email.value))
  {
       bMissingFields = true;
		strFields += "     email address in the form yourname@yourdomain.com\n";
  }

  if (theform.email.value.length < 3)
  {
       bMissingFields = true;
		strFields += "     at least 3 characters in the email field\n";
  }


	if( bMissingFields ) {
		alert( "The following information has not been filled correctly:\n" + strFields );
		return false;
	}

  	return true;
}





	function CheckForm1( theform )

	{

		var bMissingFields = false;
		var strFields = "";

		if( theform.call.value == '' ){
			bMissingFields = true;
			strFields += "     Name\n";
		}

		if (theform.call.value.length < 8)
		  {
		       bMissingFields = true;
				strFields += "     at least 8 characters in the call back field\n";
		  }



		if( bMissingFields ) {
			alert( "The Call back field is not been filled correctly:\n");
			return false;
		}

	  	return true;
	}
	