﻿// JScript File
function createBookmarkLink() { 
  title = "The Search Engine Guys - Austin Search Engine Optimization";
  url = "http://www.thesearchengineguys.com";
  if (window.sidebar) { 
    // Mozilla Firefox Bookmark   
    window.sidebar.addPanel(title, url,""); 
  } else if(window.external) { 
    // IE Favorite   
    window.external.AddFavorite( url, title); 
  } else if(window.opera && window.print) { 
    // Opera Hotlist    
    return true; 
  } 
}

function focusBox (txtLabel, theBox) {
  if (theBox.value == txtLabel) {
    theBox.value='';
  }
  theBox.select();
}

function leaveBox (txtLabel, theBox) {
  if (theBox.value == '') {
    theBox.value = txtLabel;
  }
}

function nameValidate(objSource, objArgs) {
	objArgs.IsValid = false;
	if (objArgs.Value != 'Name') {
		objArgs.IsValid = true;
	}
}

function addressValidate(objSource, objArgs) {
	objArgs.IsValid = false;
	if (objArgs.Value != 'Address') {
		objArgs.IsValid = true;
	}
}

function phoneValidate(objSource, objArgs) {
	objArgs.IsValid = false;
	if (objArgs.Value != 'Phone') {
		objArgs.IsValid = true;
	}
}

function emailValidate(objSource, objArgs) {
	objArgs.IsValid = false;
	if (objArgs.Value != 'Email') {
		objArgs.IsValid = true;
	}
}