		<!--
		//String.prototype.replace = replaceSubstring;

		function validateform(myform) {
		var ok = true;
		var strError = ""
		//alert(chkdate(document.Form1.txtShowDate));
			
			if (chkdate(document.Form1.txtShowDate) == false) {
				ok=false;
				strError = strError + "You must select a valid date to continue <br>";
			}
			if ( ((document.Form1.groupsize.value.length == 0) || (document.Form1.groupsize.value == 0)) ) {
				ok=false;
				strError = strError + "You must select the approximate group size to continue <br>";
			}				
			if (document.Form1.groupname.value.length == 0) {
				ok=false;
				strError = strError + "You must enter a Group Name to continue <br>";
			}				
			if (document.Form1.contactname.value.length == 0) {
				ok=false;
				strError = strError + "You must enter a Contact Name to continue <br>";
			}				
			if (document.Form1.address.value.length == 0) {
				ok=false;
				strError = strError + "You must enter an address to continue <br>";
			}				
			if (document.Form1.city.value.length == 0) {
				ok=false;
				strError = strError + "You must enter a City to continue <br>";
			}				
			if (document.Form1.State.value.length == 0) {
				ok=false;
				strError = strError + "You must enter a State to continue <br>";
			}				
			if (document.Form1.Zip.value.length == 0) {
				ok=false;
				strError = strError + "You must enter a Zip Code to continue <br>";
			}				
			if (document.Form1.phone.value.length == 0) {
				ok=false;
				strError = strError + "You must enter a Phone Number to continue <br>";
			}				
			if (document.Form1.email.value.length == 0) {
				ok=false;
				strError = strError + "You must enter an Email Address to continue <br>";
			}				
					

			if ( (!isInteger(document.Form1.groupsize.value)))  {
				ok=false;
				strError = strError + "The group size you entered must be an integer.<br>";
			}
			if (!ok) {
				var jsError = strError;
				//alert(jsError);
				jsError = replaceSubstring(jsError,"<br>","\n")
				alert(jsError);
				//strError = "<font face=verdana,arial,helvetica>" + strError + "</font>";
				return ok;
			}
			
			return ok;
		}

		
		function open_window(field,height,width){
			window.open (field,"","scrollbars=1,menubar=0,toolbar=0,location=0,width=" + width + ",height=" + height);
		} 	
			  
		function chkdate(objName){ 
			var err=0;
			var a, b, d, f;         

			a = objName.value         
				
			if (a.substring(1, 2) == '/' && a.substring(3, 4) == '/'){
				b = a.substring(0, 1)// month         
				d = a.substring(2, 3)// day         
				f = a.substring(4, 6)// year
			}
			else if (a.substring(2, 3) == '/' && a.substring(4, 5) == '/'){
				b = a.substring(0, 2)// month         
				d = a.substring(3, 4)// day         
				f = a.substring(5, 7)// year
			}
			else if (a.substring(1, 2) == '/' && a.substring(4, 5) == '/'){  
				b = a.substring(0, 1)// month         
				d = a.substring(2, 4)// day         
				f = a.substring(5, 7)// year
			}  
			else if (a.substring(2, 3) == '/' && a.substring(5, 6) == '/'){  
				b = a.substring(0, 2)// month         
				d = a.substring(3, 5)// day         
				f = a.substring(6, 8)// year
			}
			else{
				err = 1
			}
				
			//basic error checking   
			if (isNaN(b)) err = 1
			if (isNaN(d)) err = 1
			if (isNaN(f)) err = 1
			if (b<1 || b>12) err = 1         
			if (d<1 || d>31) err = 1         
			if (f<0 || f>99) err = 1                  
				
			//advanced error checking         
			// months with 30 days         
			if (b==4 || b==6 || b==9 || b==11){                 
				if (d==31) err=1         
			}         
				
			// february, leap year         
			if (b==2){                 // feb                 
				var g=parseInt(f/4)                 
				if (isNaN(g)) {                         
					err=1                 
				}                 
				if (d>29) err=1                 
				if (d==29 && ((f/4)!=parseInt(f/4))) err=1         
			}         
				
			if (err==1){                 
				return false;         
			}         
			else{                 
				return true;        
			} 	
		}	

		function showContent(content)
		{
		var ie4=document.all&&navigator.userAgent.indexOf("Opera")==-1;
		var ns6=document.getElementById&&navigator.userAgent.indexOf("Opera")==-1;
		var ns4=document.layers;

		 if(ie4)
		 {
		  showContentObj=document.all.qiksearch_div;
		 }
		 if(ns6)
		 {
		  showContentObj=document.getElementById("qiksearch_div");
		 }
		 if(ie4||ns6)
		 {
		  if(showContentObj.innerHTML!=content)
		  {
		   showContentObj.innerHTML=content;
		  }
		  else
		  {
		   showContentObj.innerHTML="";
		  }
		 }
		 if(ns4)
		 {
		  document.nsdiv.document.write(content);
		  document.nsdiv.document.close();
		 }
		}

		function isCardMatch (cardType, cardNumber)
		{

			cardType = cardType.toUpperCase();
			var doesMatch = true;

			if ((cardType == "VISA") && (!isVisa(cardNumber)))
				doesMatch = false;
			if ((cardType == "MASTERCARD") && (!isMasterCard(cardNumber)))
				doesMatch = false;
			if ((cardType == "DISCOVER") && (!isDiscover(cardNumber)))
				doesMatch = false;

			return doesMatch;

		}  // END FUNCTION CardMatch()
			

		function isDiscover(cc)
		{
		  first4digs = cc.substring(0,4);
		  if ((cc.length == 16) && (first4digs == "6011"))
		    return isCreditCard(cc);
		  return false;

		} // END FUNCTION isDiscover()

		function isVisa(cc)
		{
		  if (((cc.length == 16) || (cc.length == 13)) &&
		      (cc.substring(0,1) == 4))
		    return isCreditCard(cc);
		  return false;
		}  // END FUNCTION isVisa()


		function isMasterCard(cc)
		{
		  firstdig = cc.substring(0,1);
		  seconddig = cc.substring(1,2);
		  if ((cc.length == 16) && (firstdig == 5) &&
		      ((seconddig >= 1) && (seconddig <= 5)))
		    return isCreditCard(cc);
		  return false;

		} // END FUNCTION isMasterCard()

		function isCreditCard(st) {
		  // Encoding only works on cards with less than 19 digits
		  if (st.length > 19)
		    return (false);

		  sum = 0; mul = 1; l = st.length;
		  for (i = 0; i < l; i++) {
		    digit = st.substring(l-i-1,l-i);
		    tproduct = parseInt(digit ,10)*mul;
		    if (tproduct >= 10)
		      sum += (tproduct % 10) + 1;
		    else
		      sum += tproduct;
		    if (mul == 1)
		      mul++;
		    else
		      mul--;
		  }	
			if ((sum % 10) == 0)
			  return (true);
			else
			  return (false);		  	
		 }		
		 
function isEmail (s)
{   if (isEmpty(s)) 
       if (isEmail.arguments.length == 1) return defaultEmptyOK;
       else return (isEmail.arguments[1] == true);
   
    // is s whitespace?
    if (isWhitespace(s)) return false;
    
    // there must be >= 1 character before @, so we
    // start looking at character position 1 
    // (i.e. second character)
    var i = 1;
    var sLength = s.length;

    // look for @
    while ((i < sLength) && (s.charAt(i) != "@"))
    { i++
    }

    if ((i >= sLength) || (s.charAt(i) != "@")) return false;
    else i += 2;

    // look for .
    while ((i < sLength) && (s.charAt(i) != "."))
    { i++
    }

    // there must be at least one character after the .
    if ((i >= sLength - 1) || (s.charAt(i) != ".")) return false;
    else return true;
}

function isWhitespace (s)

{   var i;

    // Is s empty?
    if (isEmpty(s)) return true;

    // Search through string's characters one by one
    // until we find a non-whitespace character.
    // When we do, return false; if we don't, return true.

    for (i = 0; i < s.length; i++)
    {   
        // Check that current character isn't whitespace.
        var c = s.charAt(i);

        if (whitespace.indexOf(c) == -1) return false;
    }

    // All characters are whitespace.
    return true;
}
var defaultEmptyOK = true
function isInteger (s)

{   var i;

    if (isEmpty(s)) 
       if (isInteger.arguments.length == 1) return defaultEmptyOK;
       else return (isInteger.arguments[1] == true);

    // Search through string's characters one by one
    // until we find a non-numeric character.
    // When we do, return false; if we don't, return true.

    for (i = 0; i < s.length; i++)
    {   
        // Check that current character is number.
        var c = s.charAt(i);

        if (!isDigit(c)) return false;
    }

    // All characters are numbers.
    return true;
}

function isEmpty(s)
{   return ((s == null) || (s.length == 0))
}

function isDigit (c)
{   return ((c >= "0") && (c <= "9"))
}


		function stringReplace(findText, replaceText) { 
			var originalString = new String(this) 
			var pos = 0 
			pos = originalString.indexOf(findText) 
			while (pos != -1) { 
				preString = originalString.substring(0, pos)
				postString = originalString.substring(pos+1, originalString.length)
				originalString = preString + replaceText + postString
				pos = originalString.indexOf(findText) 
			} 
			return originalString	
		} 
		
function replaceSubstring(input, from, to) {
 // Goes through the input and replaces every occurrence of from with to
 //By droptchyald[dropt@bean-o.com] 
 var output='';
 while(input.length >= from.length && input.length > 0 && from.length > 0){
  if(input.substring(0,from.length) == from){
   output += to;
   input = input.substring(from.length);
  }else{
   output += input.substring(0,1);
   input = input.substring(1);
  }
 }
 return output + input;
}		

function formatCurrency(num) {
num = num.toString().replace(/\$|\,/g,'');
if(isNaN(num))
num = "0";
sign = (num == (num = Math.abs(num)));
num = Math.floor(num*100+0.50000000001);
cents = num%100;
num = Math.floor(num/100).toString();
if(cents<10)
cents = "0" + cents;
for (var i = 0; i < Math.floor((num.length-(1+i))/3); i++)
num = num.substring(0,num.length-(4*i+3))+','+
num.substring(num.length-(4*i+3));
return (((sign)?'':'-') + '$' + num + '.' + cents);
}
		 	  
-->
