function openSBpdf() {
	var url21;
	url21 = "http://www.activeescape.com/ActiveEscapesSuperBowl.pdf";
    window.open(url21,'hmmmm','toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=no,copyhistory=no,scrollbars=no,width=640,height=480');
}

// POP UP A PREFORMATTED EMAIL MESSAGE WINDOW
function popupMail() {  
// SET MESSAGE VALUES  
var to = "info@activeescape.com";  
//var to = "ray@extremestyle.com";  
var subject = "Active Escape: Customer Email Inquiry";  
var body = "\n";  
// BUILD MAIL MESSAGE COMPONENTS   
var doc = "mailto:" + to + "&subject=" + escape(subject) + "&body=" + escape(body);   
// POP UP EMAIL MESSAGE WINDOW  
window.location = doc;
}

BroW = parseInt(navigator.appVersion)
if (BroW >= 4) {Vs = true} else {Vs = false}
if (Vs == true) {
  Wid = screen.availWidth - 30
  Hei = screen.availHeight + 50
  Left = Math.floor((Wid - 350) / 2) ; Top = Math.floor((Hei - 100) / 2)
  if (document.layers) {
    document.captureEvents(Event.MOUSEDOWN)
  }
  document.onmousedown = noClick
}
//
function noClick (e) {
  flag = false
  if (document.layers) {which = e.which ; if (which == 3) {flag = true}
  } else {which = event.button ; if (which == 2) {flag = true}}
  if (flag) {
	document.location=document.location;
    return false
  }
}

function validate_fields(validation) {
  var success = true;
  var error_message='';
//Available Checks
  var is_required = /./
  var has_letter = /[a-z]/i
  var is_word = /^[a-z]*/i
  var has_digit = /[0-9]/
  var is_digit = /^\d*$/
  var is_2digit = /^\d{2}$/
  var is_3digit = /^\d{3}$/
  var is_positive = /^[1-9]\d*$/
  var is_money = /^\d*$|^\d*\.\d{2}$|^\$\d*$|^\d*\.\d{2}$/
  var is_float = /^\d*$|^\d*\.\d*$/
  var is_phone =  /^\d{10}$/
  var is_zipcode= /^\d{5}$|^\d{5}[\-\s]?\d{4}$/
  var is_email = /^[a-z][a-z_0-9\.\-]+@[a-z_0-9\.\-]+\.[a-z]{2,3}$/i

  for (var i = 0; i < validation.length; i++) {
     myfield = validation[i][0];
     mycheck = validation[i][1];
     myemsg  = validation[i][2];

     //Perform validation check
     if (!(eval(mycheck).test(myfield.value))) {
       success = false; 
       error_message = error_message + myemsg;
	   myfield.focus()
     }
  }
  if (!success) {
      alert(error_message);
  }
  return success;
}

function validate_info(FormName) {
  var validation = new Array();
  validation[0] = new Array(document.forms[FormName].realname,"is_required","Please enter your name.\n");
  validation[1] = new Array(document.forms[FormName].email,"is_email","Email Address is invalid.\n");
  if (!validate_fields(validation)) { 
		return false;
  } else { 
		//alert("This function is not available at this time. We apologize for any inconvenience.");
		return true;
  }
}
// -->

