		<!--
		//String.prototype.replace = replaceSubstring;

		function validateform(myform) {
		var ok = true;
		var strError = ""
		//alert(chkdate(document.Form1.txtShowDate));
			
			if ( ((document.Form1.giftfor2.value.length == 0) || (document.Form1.giftfor2.value == 0)) && 
			  ((document.Form1.giftfor1.value.length == 0) || (document.Form1.giftfor1.value == 0)) && 
			  ((document.Form1.giftfor3.value.length == 0) || (document.Form1.giftfor3.value == 0)) &&			  
			  ((document.Form1.giftfor5.value.length == 0) || (document.Form1.giftfor5.value == 0)) &&			  
			  ((document.Form1.giftfor6.value.length == 0) || (document.Form1.giftfor6.value == 0)) &&			  			  
			  ((document.Form1.giftforamount.value.length == 0) || (document.Form1.giftforamount.value == 0)) ) {
				ok=false;
				strError = strError + "You must select Gift Certificate Quantity or dollar amount to continue <br>";
			}				
			if (document.Form1.fname.value.length == 0) {
				ok=false;
				strError = strError + "You must enter a First Name to continue <br>";
			}				
			if (document.Form1.lname.value.length == 0) {
				ok=false;
				strError = strError + "You must enter a Last 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 (document.Form1.cc_name.value.length == 0) {
				ok=false;
				strError = strError + "You must enter a Credit Card Name to continue <br>";
			}				
			if (document.Form1._cc_number.value.length == 0) {
				ok=false;
				strError = strError + "You must enter a Credit Card Number to continue <br>";
			}				
			if (document.Form1.cc_type.value.length == 0) {
				ok=false;
				strError = strError + "You must enter a Credit Card Type to continue <br>";
			}				
			
			if ((document.Form1._cc_expmonth.value.length == 0) || (document.Form1._cc_expyear.value.length == 0)) {
				ok=false;
				strError = strError + "You must enter a Credit Card Expiration Date to continue <br>";
			}				
			
		
			//if (!isCardMatch(document.Form1.cc_type.value, document.Form1._cc_number.value)) {
			//	ok=false;
			//	strError = strError + "The Credit Card Number You entered must match the Credit Card Type.<br>";
			//}

			if ( (!isInteger(document.Form1.giftfor2.value)) || (!isInteger(document.Form1.giftfor1.value)) || (!isFloat(document.Form1.giftforamount.value)) )  {
				ok=false;
				strError = strError + "The Quantity You entered must be an integer.<br>";
			}
			if (!ok) {
				var jsError = strError;
				jsError = replaceSubstring(jsError,"<br>","\n")
				alert(jsError);
				strError = "<font face=verdana,arial,helvetica>" + strError + "</font>";
				//showContent(strError);
				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 getTheDay(aText) {
			//alert(aText.value);
			var myDays= ["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"]
			myDate=new Date(eval('"'+aText.value+'"'))
				
			//getTheDay = myDays[myDate.getDay()];
			return myDays[myDate.getDay()];
		}
			
		function CalcPrice() {


			if ( (document.Form1.giftfor1.value.length == 0) || (!isInteger(document.Form1.giftfor1.value)) ) {
				document.Form1.giftfor1.value = 0;
			}
			if ( (document.Form1.giftfor2.value.length == 0) || (!isInteger(document.Form1.giftfor2.value)) ) {
				document.Form1.giftfor2.value = 0;
			}
			if ( (document.Form1.giftforamount.value.length == 0) || (!isFloat(document.Form1.giftforamount.value)) ) {
				document.Form1.giftforamount.value = 0;
			}
			if ( (document.Form1.giftfor3.value.length == 0) || (!isFloat(document.Form1.giftfor3.value)) ) {
				document.Form1.giftfor3.value = 0;
			}		
			if ( (document.Form1.giftfor5.value.length == 0) || (!isFloat(document.Form1.giftfor5.value)) ) {
				document.Form1.giftfor5.value = 0;
			}			
			if ( (document.Form1.giftfor6.value.length == 0) || (!isFloat(document.Form1.giftfor6.value)) ) {
				document.Form1.giftfor6.value = 0;
			}						
			
			var int1 = parseInt(document.Form1.giftfor1.value);
			var int2 = parseInt(document.Form1.giftfor2.value);
			var int3 = parseInt(document.Form1.giftfor3.value);	
			var int5 = parseInt(document.Form1.giftfor5.value);	
			var int6 = parseInt(document.Form1.giftfor6.value);				
			var dblamount = parseFloat(document.Form1.giftforamount.value);
			var price1 = parseFloat(document.Form1.hiddenRateFor1.value);
			var price2 = parseFloat(document.Form1.hiddenRateFor2.value);
			//alert(price1);
			var amt1 = int1 * price1;
			var amt2 = int2 * price2;
			var amt3 = int3 * 75;
			var amt5 = int5 * 10;
			var amt6 = int6 * 25;			

			document.Form1.total.value = FormatNumber(amt1 + amt2 + amt3 + amt5 + amt6 + dblamount,2,false,false);
		}	
			
		function FormatNumber(num, decimalNum, bolLeadingZero, bolParens)
			  {
		      var tmpNum = num + 0.0001;

		      // Return the right number of decimal places
		      tmpNum *= Math.pow(10,decimalNum);
		      tmpNum = Math.floor(tmpNum);
		      tmpNum /= Math.pow(10,decimalNum);

		      var tmpStr = new String(tmpNum);

		      // See if we need to hack off a leading zero or not
		      if (!bolLeadingZero && num < 1 && num > -1 && num !=0)
		          if (num > 0)
		              tmpStr = tmpStr.substring(1,tmpStr.length);
		          else
		              // Take out the minus sign out (start at 2)
		              tmpStr = "-" + tmpStr.substring(2,tmpStr.length);                        


		      // See if we need to put parenthesis around the number
		      if (bolParens && num < 0)
		          tmpStr = "(" + tmpStr.substring(1,tmpStr.length) + ")";


		      return tmpStr;
		  }
			  
		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;
}		
var reFloat = /^((\d+(\.\d*)?)|((\d*\.)?\d+))$/		
function isFloat (s){   if (isEmpty(s))        if (isFloat.arguments.length == 1) return true;       else return (isFloat.arguments[1] == true);    return reFloat.test(s)}		 	  
-->
