/*
Pop Up Window Tall and Narrow
*/
function openwindow(url) {
	newwindow=window.open(url,'standard','scrollbars,toolbar=no,screenx=0,screeny=0,top=0,left=0,location=no,directories=0,status=no,menubar=no,width=350,height=450,resizable');
	if (window.focus) {newwindow.focus()}
	return false;
}
/*
Pop Up Window Big n Fat 
*/
function openbigwindow(url) {
	newwindow=window.open(url,'standard','scrollbars,toolbar=no,screenx=0,screeny=0,top=0,left=0,location=no,directories=0,status=no,menubar=no,width=770,height=550,resizable');
	if (window.focus) {newwindow.focus()}
	return false;
}

/*
Map Pages Pop Up Window
*/
function openmapwindow(url) {
	newwindow=window.open(url,'standard','scrollbars,toolbar=no,screenx=0,screeny=0,top=0,left=0,location=no,directories=0,status=no,menubar=no,width=700,height=420,resizable');
	if (window.focus) {newwindow.focus()}
	return false;
}

/*
Spike Pages Pop Up Window
*/
function openspikewindow(url) {
	newwindow=window.open(url,'standard','scrollbars,toolbar=no,screenx=0,screeny=0,top=0,left=0,location=no,directories=0,status=no,menubar=no,width=350,height=555,resizable');
	if (window.focus) {newwindow.focus()}
	return false;
}


/*Dreamweaver Script Validator*/

function MM_validateForm() { //v4.0
  var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;
  for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=MM_findObj(args[i]);
    if (val) { nm=val.name; if ((val=val.value)!="") {
      if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
        if (p<1 || p==(val.length-1)) errors+='- '+nm+' must contain an e-mail address.\n';
      } else if (test!='R') {
        if (isNaN(val)) errors+='- '+nm+' must contain a number.\n';
        if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
          min=test.substring(8,p); max=test.substring(p+1);
          if (val<min || max<val) errors+='- '+nm+' must contain a number between '+min+' and '+max+'.\n';
    } } } else if (test.charAt(0) == 'R') errors += '- '+nm+' is required.\n'; }
  } if (errors) alert('The following error(s) occurred:\n'+errors);
  document.MM_returnValue = (errors == '');
}
/* - Dreamweaver Go To URL -*/
function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}
/* - Dreamweaver POP -*/
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
  }
