
	//	2011-apr: the JS equivalent of isset !!! see mycart.php --> func_kart.js for an application of this !!!
	if(undefined===window.variablename){
		window.variablename = [];
	}

	function GetRadioButtonValue(nameid)
        {
			var RetValue = '';
            var radio = document.getElementsByName(nameid);		//	the common NAME not the id !!!
            for (var ii = 0; ii < radio.length; ii++)
            {
                if (radio[ii].checked)
                {
					var RetValue = radio[ii].value;
                }
            }
            // alert('GetRadioButtonValue() ==> '+RetValue+'<==');
            return RetValue;
        }
	// Eof: GetRadioButtonValue()

	//	To check of a string is empty with JavaScript, you can do the following trick
	function IsEmpty(StrToCheck)
	{
	//first remove all spaces using the following regex
	StrToCheck= StrToCheck.replace(/^\s+|\s+$/, '');

	//then we check for the length of the string if its 0 or not
	if( StrToCheck.length==0)
		return false;
	else
		return true;
	} // Eof: IsEmpty
	//	This function is usefull if your users tried servale spaces and hit the enter button


	/*
	//	2011-jan	onbeforeunload examples WAD !!!!
	function closeIt()
	{
	  return "Any string value here forces a dialog box to \n" + 
	         "appear before closing the window.";
	}
	window.onbeforeunload = closeIt;

	window.onbeforeunload = function (evt) {
	  var message = 'Are you sure you want to leave?';
	  if (typeof evt == 'undefined') {
	    evt = window.event;
	  }
	  if (evt) {
	    evt.returnValue = message;
	  }
	  return message;
	}
	*/

		function getInternetExplorerVersion()
		// Returns the version of Internet Explorer or a -1
		// (indicating the use of another browser).
		{
		  var rv = -1; // Return value assumes failure.
		  if (navigator.appName == 'Microsoft Internet Explorer')
		  {
		    var ua = navigator.userAgent;
		    var re  = new RegExp("MSIE ([0-9]{1,}[\.0-9]{0,})");
		    if (re.exec(ua) != null)
		      rv = parseFloat( RegExp.$1 );
		  }
		  return rv;
		}
		function checkVersion()
		{
		  var msg = "You're not using Internet Explorer.";
		  var ver = getInternetExplorerVersion();

		  if ( ver > -1 )
		  {
		    if ( ver >= 8.0 ) 
		      msg = "You're using a recent copy of Internet Explorer."
		    else
		      msg = "You should upgrade your copy of Internet Explorer.";
		  }
		  alert( msg );
		}

	function write_html_line() {
			alert("end browserType = " + "ver");
		var ver = getInternetExplorerVersion();
			alert("end browserType = " + ver);
		document.getElementById('browserType').value = ver;	//	( ver > -1 ) signals the IE version number
		var html = "";
		if ( ver > -1 ) {
			//	have an IE
			document.getElementById('browserType').value = ver;
		} else {
			// have another browser than IE
			document.getElementById('browserType').value = -1;
		//	html += '<div>'
			html += '<tr>'
			html += '<td>'
			html += '&nbsp;'
			html += '</td>'
			html += '</tr>'
		//	html += '</div>'
		}
		document.write(html)
			alert("end browserType = " + ver);
	} // EOF: write_html_line()

	function printPage() { print(document); }

//*----------------------------------------------------------------------------------------------------------------------------*
	/*
	IOT redirect:
	1.  Into the HEAD section of your page type:

		<meta http-equiv="refresh" content="5; URL=http://my new web address">

		And into the BODY of your document put:
		"my old web address"  has moved to  "my new web address"
		If your browser does not automatically redirect you in 5 seconds,
		click <a href="http://my new web address">here</a> to go to the new site.

	2.  The second example using java script
		is handy if you have a number of domain names (for whatever reason) but want all names to point to the same domain.

		Just add this to the top of your document:
		<script language="JavaScript">
		<!--
		if( -1 == location.href.
		           toLowerCase().
		           indexOf('mydomainA.com') )
		{
		  location.href = 'http://mydomainA.com';
		}
		// -->
		</script>

		The above code will check if 'mydomainA.com' is part of the code
		and if not will immediately redirect to  'http://mydomainA.com'

	//	Option 2 is best I think unless you want to actually inform your visitor of the change then option 1 can be a good idea.
	*/

	//	2009-nov TESTED and WAD: redirect()  ;  openLink()  ;  submitPopup()  ;  popUpWindow() 
	function redirect(URLStr) { location = URLStr; }
	function openLink(page) {
		// open a link in a new window and immediately focus on it !!!
		OpenWin=this.open(page, "CtrlWindow","toolbar=yes,menubar=yes,location=yes,scrollbars=yes,resizable=yes");
		}

	var popUpWin=0;
	function popUpWindow(URLStr, left, top, width, height)
	{
		if (popUpWin) {
			if (!popUpWin.closed) popUpWin.close() ;
		}
		popUpWin = open(URLStr, 'popUpWin', 'toolbar=no,location=no,directories=no,status=no,menub ar=no,scrollbar=no,resizable=no,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');
	} // EOF: popUpWindow()

	function submitPopup(url)
	{
		//	1. note url must be what follows the slash after the website this fnc is called from !!! 
		//		example: http://www.sprayclean.com/productssk.htm     thus:   'productssk.htm'
		//	2. WAD: resizable, width, height, left, top
		//	3. location=1 displays the address field which cannot be modified b/c it is a popup. tested and no diff for 0/1
		//	4. statusbar=1 displays ?.  tested and no diff for 0/1
		//	5. menubar=1 displays the menu bar. tested and no diff for 0/1
		url = '' + '/' + url;
		day = new Date();
		id = day.getTime();
		eval("page" + id + " = window.open(url, '" + id + "', 'toolbar=1,scrollbars=1,location=1,statusbar=1,menubar=1,resizable=1,width=1024,height=768,left = 0,top = 0');");
	} // EOF: submitPopup()
//*----------------------------------------------------------------------------------------------------------------------------*

function MM_findObj(n, d) { //v4.01
	var p,i,x;
	if(!d) d=document;
	if((p=n.indexOf("?"))>0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p); }
	if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
	for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
	if(!x && d.getElementById) x=d.getElementById(n); return x;
	}

function MM_showHideLayers() { //v3.0
	var i,p,v,obj,args=MM_showHideLayers.arguments;
	for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v; }
	}

	function flipAnswer( answerId, bOthers ) {
		var thisAnswer = document.getElementById(answerId);
		if (thisAnswer.style.display == "none") {
			thisAnswer.style.display = "block";
		} else {
			thisAnswer.style.display = "none";
		}
		if (bOthers) {
			// if 'block' then collapse all other menu-item objects
			var aObjs = new Array( 'cleaning', 'ordering', 'shipping', 'testimonials', 'ShipInfo' )
			if ( thisAnswer.style.display == "block" ) {
				for (var k=0; k<aObjs.length; k++) {
					if ( answerId!=aObjs[k] ) {
						document.getElementById( aObjs[k] ).style.display = "none";
					}
				}
			}
		}
		/*
		switch(answerId)
		{
		case 'cleaning':
		  execute code block 1
		  break;    
		case 'ordering':
		  execute code block 1
		  break;    
		case 'shipping':
		  execute code block 2
		  break;
		case 'ratings':
		  execute code block 2
		  break;
		default:
		  code to be executed if n is
		  different from case 1 and 2
		}
		*/
		return true;
//		return false;
	} // EOF: flipAnswer()

	function loginValueValid(textObject) {
		if (textObject.value.search(/[^a-zA-Z0-9]/) != -1) {
			return false;
		}
		return true;
	} // EOF: loginValueValid()

	function number_check(value) {
	// Is a number even or odd? Convert the value to binary.
		var binary = value.toString(2);
		if (binary.charAt(binary.length - 1) == "1") {
			return false;
		}
		else {
			return true;
		}
	} // EOF: number_check

	function supw( pcStr, pcType ) {
		var sReturn = '' ;
		var cOdd = '0abcdefghi' ;
		var cODD = '0IHGFEDCBA' ;
		var cNbr = '0123456789' ;
		var cEVN = '0RSTUVWXYZ' ;
		var cEvn = '0zyxwvutsr' ;
		var temp  = '' ;
		var sList = '' ;
		var sRet  = '' ;
		var cCurName = pcStr ;
		var dNow = new Date() ;
		var cMth = '00' + ( 1+dNow.getMonth() ) ;
			cMth = cMth.substr(cMth.length-2,2) ;
		var cDate = '' + dNow.getFullYear() + cMth + dNow.getDate() ;
		if ( pcStr == '????????' ) { cCurName = cDate ; }

		switch (pcType){
		case "SETUP":
			if ( pcStr ) {
				var bEvn = false ;
				for (var k=0; k<cCurName.length; k++) {
					temp = cCurName.substring(k,k+1) ;
					if ( temp=='9' ) {
						sRet += temp ;
					}
					else {
						temp = 1 + parseInt( temp ) ;
						bEvn = number_check( temp ) ;
						if ( number_check( k+1 ) ) {
							sList = ( bEvn==true? cEVN.toUpperCase() : cEvn.toLowerCase() ) ;
						}
						else {
							sList = ( bEvn==true? cODD.toUpperCase() : cOdd.toLowerCase() ) ;
						}
						sRet += sList.substring(temp,temp+1) ;
					}
				}
				sReturn = sRet ;
				sReturn = reverseInvert( sReturn, sReturn.length ) ;
			}
			break
		case "UNSET":
			//	alert( "UNSET  cCurName = " + cCurName ) ;
			if ( pcStr ) {
				cCurName = reverseInvert( cCurName, cCurName.length ) ;
				var bUpp  = false ;
				for (var k=0; k<cCurName.length; k++) {
					temp = cCurName.substring(k,k+1) ;
					if ( temp=='9' ) {
						sRet += temp ;
					}
					else {
						bUpp = (temp==temp.toUpperCase()) ;
						if ( number_check( k+1 ) ) {
							sList = ( bUpp==true? cEVN.toUpperCase() : cEvn.toLowerCase() ) ;
						}
						else {
							sList = ( bUpp==true? cODD.toUpperCase() : cOdd.toLowerCase() ) ;
						}
						temp = (sList.indexOf( temp )-1) ;
						if ( temp < 0 ) {
							// one chr was not found
							sRet = "00000000" ;
							break
						}
						sRet += ( temp>0? temp : "0" ) ;
					}
				}
				sReturn = sRet ;
			}
			break
		default:
			sReturn = '' ;
		} // EOF: switch

		return( sReturn );
	} // EOF: supw()

	//		 startNewWin( pcTitle, 340, 390, 550, 465, 'http://www.spraykleen.com/msd.php' )
	function startNewWin( pcTitle, pcHeight, pcWidth, pcMoveToHor, pcMoveToVer, pcGoTo )
	{
	//	alert("BEG  |  msd.html  |  startNewWin()");
		OpenWindow=window.open("", "NewWind", "height=" + pcHeight + ", width=" + pcWidth + ",toolbar=no,scrollbars="+scroll+", menubar=no, resizable=no");
		var SKmsd = "";

		SKmsd += "<html>" ;

		SKmsd += "<head>" ;
		SKmsd += "<title>" + pcTitle + "<\/title>" ;
		SKmsd += "<script src='corefunctions.js' type='text/javascript'><\/script>" ;
		SKmsd += "<\/head>" ;

		SKmsd += "<body bgcolor=#ddFFFF>" ;

		SKmsd += "<form action=" + pcGoTo + " method='post'>" ;
		SKmsd += "<br>" ;
		SKmsd += "&nbsp;&nbsp;&nbsp; Password: &nbsp;" ;
		SKmsd += "<input type='password' id='givenPW' name='givenPW' size='6' title='Please enter your given password' />" ;
		SKmsd += "&nbsp;&nbsp;&nbsp;" ;
		SKmsd += "<input type='submit' id='submitd' name='submitd' value=' Continue ' style='font:16px Arial; background:yellow'>" ;
		SKmsd += "<br>" ;

		SKmsd += "<script type='text/javascript'>" ;
		SKmsd += "window.moveTo(" + pcMoveToHor + "," + pcMoveToVer + ");" ;
	//	SKmsd += "window.resizeTo(740,890);" ;
		SKmsd += "<\/script>" ;

		SKmsd += "<br>" ;
		SKmsd += "&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; " ;
		SKmsd += "<INPUT TYPE='BUTTON' VALUE='Close Window' onClick='window.close()'>" ;

		SKmsd += "<\/form>" ;
		SKmsd += "<\/body>" ;

		SKmsd += "<\/html>" ;
		OpenWindow.document.write(SKmsd)
		self.name="main"
	} // EOF: startNewWin()

	function reNewWin_01() {
	// WAD 2008-May not yet used
		// alert("yes in reNewWin()") ;
		// Set height and width
		var NewWinHeight=800;
		var NewWinWidth=300;

		// Place the window
		var NewWinPutX=610;
		var NewWinPutY=410;

		//Get what is below onto one line
		TheNewWin =window.open("http://www.spraykleen.com/xyz.php",'TheNewpop','fullscreen=yes,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no');
		//Get what is above onto one line

		TheNewWin.resizeTo(NewWinHeight,NewWinWidth);
		TheNewWin.moveTo(NewWinPutX,NewWinPutY);
	} // EOF: reNewWin_01()

	function reverseInvert( pcStr, pnLength ){
		var sInpStr = pcStr ;
		var sRetStr = '' ;
		var cTemp   = ''
		for (i = 0; i<sInpStr.length; i++) {
			cTemp += sInpStr.substring( sInpStr.length-1-i,sInpStr.length-i)
		}
		sRetStr = '00000000000000000000' + cTemp
		sRetStr = sRetStr.substring( sRetStr.length-pnLength,sRetStr.length)
		return( sRetStr ) ;
	} // EOF: reverseInvert()

	function dateStamp( pAlign ) { 
		// document.write( "<p ALIGN=right><I>" + Date() + "<\/I><\/p>" ) ;
		var dNow=Date()
		cReturn = ( "<p ALIGN=" + pAlign + "><I>" + dNow.substring(0,10) + ' ' + dNow.substring(20,24) + "<\/I><\/p>" ) ;
		return( cReturn ) ;
	} // EOF: dateStamp()

	function get_MyYear( pcTODO, pAlign ) { 
		// document.write( "<p ALIGN=right><I>" + Date() + "<\/I><\/p>" ) ;
		var dNow = new Date();
		var cReturn = -1
		if ( pcTODO=='YEAR') {
			//	cReturn = ( "<p ALIGN=" + pAlign + "><I>" + dNow.substring(20,24) + "<\/I><\/p>" ) ;
			cReturn = dNow.getFullYear() ;
		}
		if ( pcTODO=='DIFF') {
			cReturn = ( dNow.getFullYear() - 1968 ) ;
		}
		cReturn = cReturn.toString()
		return( cReturn ) ;
	} // EOF: get_MyYear()

	function get_DateText( pcDayType, pcMonthType )  {
	d = new Date();
	dateText = "";
	dayValue = d.getDay();
	if (dayValue == 0)
	    dateText += "Sunday";
	else if (dayValue == 1)
	    dateText += "Monday";
	else if (dayValue == 2)
	    dateText += "Tuesday";
	else if (dayValue == 3)
	    dateText += "Wednesday";
	else if (dayValue == 4)
	    dateText += "Thursday";
	else if (dayValue == 5)
	    dateText += "Friday";
	else if (dayValue == 6)
	    dateText += "Saturday";
	if (pcDayType=='short'){ dateText = dateText.substring( 0, 3 ) + '&#160' }

	monthValue = d.getMonth();
	monthText = "";
	if (monthValue == 0)
    	monthText += "January";
	if (monthValue == 1)
    	monthText += "February";
	if (monthValue == 2)
    	monthText += "March";
	if (monthValue == 3)
    	monthText += "April";
	if (monthValue == 4)
    	monthText += "May";
	if (monthValue == 5)
    	monthText += "June";
	if (monthValue == 6)
    	monthText += "July";
	if (monthValue == 7)
    	monthText += "August";
	if (monthValue == 8)
    	monthText += "September";
	if (monthValue == 9)
    	monthText += "October";
	if (monthValue == 10)
	    monthText += "November";
	if (monthValue == 11)
    	monthText += "December";

	if (pcMonthType=='short'){ monthText = monthText.substring( 0, 3 ) }
	return ( dateText + ' ' + monthText + ' ' + d.getDate() )
	}

	function get_TimeText( pbGreeting, pbAt ) {
	d = new Date();
	minuteValue = d.getMinutes();
	if (minuteValue < 10)
	    minuteValue = "0" + minuteValue

	hourValue = d.getHours();
	if (hourValue == 0)
	   {
	   greeting = "Good morning, ";
	   timeText = " at " + (hourValue+12) + ":" + minuteValue + " am";
	   }
	else if (hourValue < 12)
	    {
	    greeting = "Good morning!";
	    timeText = " at " + hourValue + ":" + minuteValue + " am";
	    }
	else if (hourValue == 12)
	    {
	    greeting = "Good afternoon!";
	    timeText = " at " + hourValue + ":" + minuteValue + " pm";
	    }
	else if (hourValue < 17)
	    {
	    greeting = "Good afternoon!";
	    timeText = " at " + (hourValue-12) + ":" + minuteValue + " pm";
	    }
	else
	    {
	    greeting = "Good evening!";
	    timeText = " at " + (hourValue-12) + ":" + minuteValue + " pm";
	    }

	if ( !(pbAt) ) {
		// remove the " at "
		timeText = timeText.substring( 4, timeText.length )
	}
	if ( (pbGreeting) ) { timeText = greeting + ' ' + timeText }
	return( timeText )
	}
	// document.open();
	// document.write( "" + dateText + timeText);

	function custRound(x,places) { return (Math.round(x*Math.pow(10,places)))/Math.pow(10,places) }
	function isNumberFloat(inputString) { return (!isNaN(parseInt(inputString,10))) ? true : false; }

	function contains_Space(inputString, surchChar) { 
	// does the incoming string have at least one space within its nonspace ends?
		var bRet = false
		inputString = removeLeadingAndTrailingChar (inputString, ' ') 
		if ( inputString ) {
			var cCurName = inputString ;	var temp ;  var bStart=false
			for (var k=0; k<cCurName.length; k++) { 
				temp = '' + cCurName.substring(k,k+1) ;
				if ( temp==surchChar ) {
					if ( bStart == true ) { bRet=true; break; } // first time AFT starting all done
				}
				else { bStart = true }
			}
		}
		// alert("inputString = " + inputString + "   contains ==>" + surchChar + "<== is " + bRet)
		return bRet
	} // EOF: contains_Space()

	function parseFrontSpace( inAmount ) {
		var cCurName=''+inAmount ; nCount=0 ;	var temp ;
		var k = cCurName.length
		// alert("k = " + k)
		if (k == 1) {cCurName = '                ' + cCurName } ;
		if (k == 2) {cCurName = '              ' + cCurName } ;
		if (k == 3) {cCurName = '            ' + cCurName } ;
		if (k == 4) {cCurName = '          ' + cCurName } ;
		if (k == 5) {cCurName = '        ' + cCurName } ;
		if (k == 6) {cCurName = '      ' + cCurName } ;
		if (k == 7) {cCurName = '    ' + cCurName } ;
		if (k == 8) {cCurName = '  ' + cCurName } ;
		inAmount = cCurName
		return( inAmount )
	}
	
	function parseLeadSpace( inAmount, nInK ) {
		inAmount = '                 '+inAmount
		return( (inAmount).substring(inAmount.length-nInK,inAmount.length) )
	}
	
	function removeLeadingAndTrailingChar (inputString, removeChar) 
	{
		var returnString = inputString;
		if (removeChar.length)
		{
			if (returnString) {
				while(''+returnString.charAt(0)==removeChar)
				{
					returnString=returnString.substring(1,returnString.length);
				}
				while(''+returnString.charAt(returnString.length-1)==removeChar)
			  	{
		    		returnString=returnString.substring(0,returnString.length-1);
		  		}
			}
		}
		return returnString;
	}

	function removeChar( inputString, paChar, pcReplaceChar ) { 
		// remove from the inputString any and all chars contained in paChar[] (including blanks)
		// paChar[] MUST be an array[] !!!
		// returns the corrected string
		// 2007 May: pcReplaceChar not yet used nor tested
		var aChar = [ '!', '@', '#', '$', '%', '^', '&', '*', '(', ')', '_', '+', '-', '=' ]
		if ( !(paChar) ) { paChar = aChar }

		var cRep = ''
		var nRep = 0
		if ( (pcReplaceChar) ) {
			cRep = pcReplaceChar
		}
		else {
			cRep = ''
		}
		nRep = cRep.length
		//	alert("nRep = " + nRep)

		if (inputString) {
			var cCurName = inputString ;	var temp ;
			for (var i=0; i<paChar.length; i++) { 
				var kMax = cCurName.length
				for (var k=0; k<kMax; k++) { 
					temp = '' + cCurName.substring(k,k+1) ;
					if ( temp==paChar[i] ) {
						// BEWARE: cCurName.length changes !!!!
						if ( nRep > 0 ) {
							cCurName=cCurName.substring(0,k)+cRep+cCurName.substring(k+1,cCurName.length+1)
							k += (cRep - 1)
							kMax += (cRep - 1)
						}
						else {
							cCurName=cCurName.substring(0,k)+''+cCurName.substring(k+1,cCurName.length+1)
							k--
							kMax--
						}
					}
				}
			}
			inputString = ''+cCurName
		}
		return inputString
	} // EOF: removeChar()

	function placeFocus() {
		// Insert the onLoad event handler into your BODY tag:   <BODY OnLoad="placeFocus()">
		if (document.forms.length > 0) {
			var field = document.forms[0];
			for (i = 0; i < field.length; i++) {
				if ((field.elements[i].type == "text")
					|| (field.elements[i].type == "textarea")
					|| (field.elements[i].type.toString().charAt(0) == "s")) {
					alert( "" + i + "/" + field.length + "  Name[" + i + "] = " + field.elements[i] )
					document.forms[0].elements[i].focus();
					break;
		        }
			}
		}
	} // EOF: placeFocus()

	function encodeString( inAmount ) {
	// amount=''+657 ; tester for whole integer
	var cCurName=''+inAmount ; nCount=0 ;	var temp ;
	for (var k=0; k<cCurName.length; k++) {
		temp = '' + cCurName.substring(k,k+1) ;
		if ( temp=='.' ) { ;
			nCount++
			if ((cCurName.substring(k+1,cCurName.length+1).length )==1) {cCurName = cCurName + '0' } ;										    	    if ((cCurName.substring(k+1,cCurName.length+1).length )==0) {cCurName = cCurName + '00'} ;
		}
	}
	if (nCount==0) { { cCurName = cCurName + '.00' } }
	// alert( "inAmount = " + inAmount + '\ncCurName = '+cCurName + '    nCount=' + nCount)
	inAmount = cCurName
	return( inAmount )
	} // EOF: encodeString()

function set_theMainBanner( pnWidth, pcFontSize, pcParam1, pcParam2, pcParam3 ) {
	if (!pnWidth)        { pnWidth = 400; }
	if (pcFontSize=='')  { pcFontSize = 11/8; }
	if ( pcParam1=='' )  { pcParam1='Spray Kleen'+'&trade;'+'&reg;'; }
	if (!pcParam2)       { pcParam2=''; }
	if (!pcParam3)       { pcParam3=''; }

   var banr = "";
   banr += '<div id="banner">'
   banr += '   <table align="center" width="' + pnWidth + '" border="1" cellspacing="0" cellpadding="0" class="styleAqua">'
   banr += '      <tr>'
   banr += '         <td width="55" align=\"center\" valign=\"middle\">'
   banr += '            <img src="/images/FlagCanada.gif" width="45" height="45" alt="canFlag">'
   banr += '         <td>'

   banr += '         <td width=' + pnWidth + ' align="center" valign="middle">'

      banr += '            <span style=\"font-family: Arial, Helvetica, sans-serif; font-size:' +  pcFontSize + 'em;\">'
      banr +=              pcParam1 + pcParam2
      banr += '            <span '
      //	attach the additional orange pageNo images according to param3
      if ( ( pcParam3.length > 0 ) ) {
         banr += '&nbsp; '
         switch (pcParam3){
         case "1 of 4":
            banr += '&nbsp; '
            banr += '<img id="cBann1" src="/images/step1Orange.gif"   height="25" width="25" alt="1Orng" >'
            banr += '&nbsp; '
            banr += '<img id="cBann2" src="/images/step2Blue.gif"   height="25" width="25" alt="2Blue" >'
            banr += '&nbsp; '
            banr += '<img id="cBann3" src="/images/step3Blue.gif"   height="25" width="25" alt="3Blue" >'
            banr += '&nbsp; '
            banr += '<img id="cBann4" src="/images/step4Blue.gif"   height="25" width="25" alt="4Blue" >'
            break
         case "2 of 4":
            banr += '&nbsp; '
            banr += '<img id="cBann1" src="/images/step1Blue.gif"   height="25" width="25" alt="1Blue" >'
            banr += '&nbsp; '
            banr += '<img id="cBann2" src="/images/step2Orange.gif"   height="25" width="25" alt="2Orng" >'
            banr += '&nbsp; '
            banr += '<img id="cBann3" src="/images/step3Blue.gif"   height="25" width="25" alt="3Blue" >'
            banr += '&nbsp; '
            banr += '<img id="cBann4" src="/images/step4Blue.gif"   height="25" width="25" alt="4Blue" >'
            break
         case "3 of 4":
            banr += '&nbsp; '
            banr += '<img id="cBann1" src="/images/step1Blue.gif"   height="25" width="25" alt="1Blue" >'
            banr += '&nbsp; '
            banr += '<img id="cBann2" src="/images/step2Blue.gif"   height="25" width="25" alt="2Blue" >'
            banr += '&nbsp; '
            banr += '<img id="cBann3" src="/images/step3Orange.gif"   height="25" width="25" alt="3Orng" >'
            banr += '&nbsp; '
            banr += '<img id="cBann4" src="/images/step4Blue.gif"   height="25" width="25" alt="4Blue" >'
            break
         case "4 of 4":
            banr += '&nbsp; '
            banr += '<img id="cBann1" src="/images/step1Blue.gif"   height="25" width="25" alt="1Blue" >'
            banr += '&nbsp; '
            banr += '<img id="cBann2" src="/images/step2Blue.gif"   height="25" width="25" alt="2Blue" >'
            banr += '&nbsp; '
            banr += '<img id="cBann3" src="/images/step3Blue.gif"   height="25" width="25" alt="3Blue" >'
            banr += '&nbsp; '
            banr += '<img id="cBann4" src="/images/step4Orange.gif"   height="25" width="25" alt="4Orng" >'
            break
         }
      }
      else {
         //   the pcParam3 is null empty !!!
      }

   banr += '         </td>'

   banr += '         <td width="55" align=\"center\" valign=\"middle\">'
   banr += '            <img src="/images/FlagUSA.gif" width="54" height="50" alt="usaFlag">'
   banr += '         </td>'
   banr += '      </tr>'
   banr += '   </table>'
   banr += '</div>'
   //   alert( "index.html   |   set_theMainBanner()") ;
	document.write(banr)
} // EOF: set_theMainBanner()

function set_HorizMenu( ) {
   var menu = "";
   menu += '<div id="menu">'

   menu += '<ul>'
     menu += '<li><a href="http://www.sprayclean.com/index.html" title="Home Page">Home</a></li>'
   menu += '</ul>'

   menu += '<ul>'
   menu += '  <li><h2>Products</h2>'
   menu += '    <ul>'
   menu += '      <li><a href="http://www.sprayclean.com/custsign.php">Place an Order</a></li>'
// menu += '      <li><a href="http://www.sprayclean.com/custorder.php">Place an Order</a></li>'
   menu += '      <li><a href="http://www.sprayclean.com/gift.html">Send as Gift</a></li>'
   menu += '      <li><a href="http://www.sprayclean.com/productsk.htm">Spray Kleen</a></li>'
// menu += '      <li><a href="http://www.sprayclean.com/corporder.php">Corporate Order</a></li>'
   menu += '      <li><a href="http://www.sprayclean.com" target="_self">Volume &hellip;</a>'
   // beg submenu
   menu += '        <ul>'
   menu += '          <li><a href="http://www.sprayclean.com/corporder.php" >Order Form</a></li>'
   menu += '          <li><a href="http://www.sprayclean.com/corpquote.php" >Quote Request</a></li>'
   menu += '        </ul>'
   menu += '      </li>'
   // end submenu

   menu += '    </ul>'
   menu += '  </li>'
   menu += '</ul>'

   menu += '<ul>'
   menu += '  <li><h2>Locations</h2>'
   menu += '    <ul>'
   menu += '      <li><a href="http://www.sprayclean.com/storelocation.php?code=OL" title="Online Store Locations">On-Line &nbsp; &nbsp;&nbsp;</a>'
   menu += '      <li><a href="http://www.sprayclean.com/index.html">Canada <b>&hellip;</b></a>'
   menu += '        <ul>'
   menu += '          <li><a href="../storelocation.php?code=AB">Alberta</a></li>'
   menu += '          <li><a href="../storelocation.php?code=BC">British Columbia</a></li>'
   menu += '          <li><a href="../storelocation.php?code=MB">Manitoba</a></li>'
   menu += '          <li><a href="../storelocation.php?code=NB">New Brunswick</a></li>'
   menu += '          <li><a href="../storelocation.php?code=NL">Newfoundland Labrador</a></li>'
   menu += '          <li><a href="../storelocation.php?code=NT">North West Territory</a></li>'
   menu += '          <li><a href="../storelocation.php?code=NS">Nova Scotia</a></li>'
   menu += '          <li><a href="../storelocation.php?code=NU">Nunavut</a></li>'
   menu += '          <li><a href="../storelocation.php?code=ON">Ontario</a></li>'
   menu += '          <li><a href="../storelocation.php?code=PE">Prince Edward Island</a></li>'
   menu += '          <li><a href="../storelocation.php?code=QC">Quebec</a></li>'
   menu += '          <li><a href="../storelocation.php?code=SK">Saskatchewan</a></li>'
   menu += '          <li><a href="../storelocation.php?code=YT">Yukon Terrotory</a></li>'
   menu += '        </ul>'
   menu += '      </li>'
   menu += '      <li><a href="http://www.sprayclean.com/storelocation.php?code=USA" title="USA Online Locations">USA &emsp;</a>'
   menu += '    </ul>'
   menu += '  </li>'
   menu += '</ul>'

   menu += '<ul>'
   menu += '  <li><h2>About Us</h2>'
   menu += '    <ul>'
   menu += '      <li><a href="http://www.sprayclean.com/aboutus.htm">Who We Are</a></li>'
   menu += '      <li><a href="http://www.sprayclean.com/testimonials.htm" title="About Spray Kleen">Testimonials</a></li>'
   menu += '    </ul>'
   menu += '  </li>'
   menu += '</ul>'

   menu += '<ul>'
   menu += '  <li><h2>Contact Us</h2>'
   menu += '    <ul>'
   menu += '      <li><a href="http://www.sprayclean.com/contactus.htm">email phone</a></li>'
   menu += '      <li><a href="http://www.sprayclean.com/streetMap.htm">street map</a></li>'
   menu += '    </ul>'
   menu += '  </li>'
   menu += '</ul>'

   menu += '<ul>'
   menu += '  <li><h2>Help</h2>'
   menu += '    <ul>'

// menu += '      <li><a href="http://www.sprayclean.com/orderInfo.htm" >How to Order</a></li>'
   menu += '      <li><a href="http://www.sprayclean.com/infoOrder.htm" >How to Order &nbsp;</a></li>'

   menu += '      <li><a href="http://www.sprayclean.com" target="_self">On Cleaning &hellip;</a>'
   // beg submenu
   menu += '        <ul>'
   menu += '          <li><a href="http://www.sprayclean.com/cleanWhat.htm" title="What does Spray Kleen clean?">Cleans What</a></li>'
   menu += '          <li><a href="http://www.sprayclean.com/cleanTips.htm" title="Useful tips for Cleaning">Cleaning Tips</a></li>'
   menu += '          <li><a href="http://www.sprayclean.com/cleanTask.htm" title="Cleaning tasks/tips from our customers">Customer Tips</a></li>'
   menu += '          <li><a href="http://www.sprayclean.com/cleanDilute.htm" title="Dilution for specific cleaning tasks">Dilution Ratios</a></li>'
   menu += '        </ul>'
   menu += '      </li>'
   // end submenu

   menu += '      <li><a href="http://www.sprayclean.com/gift.html">Send as Gift &nbsp; &nbsp;</a></li>'
   menu += '      <li><a href="http://www.sprayclean.com/infoShipping.htm" >Shipping &emsp; &emsp;&nbsp;</a></li>'
   menu += '      <li><a href="http://www.sprayclean.com/links.htm" title="Spray Kleen Listings">Useful Links &nbsp;</a></li>'
   menu += '    </ul>'
   menu += '  </li>'
   menu += '</ul>'

   menu += '</div>'
   document.write(menu)
   //   alert( "index.html   |   set_HorizMenu()") ;
} // EOF: set_HorizMenu()

function display_ContactInfo( pnWidth, pbBlockNone ) {
   var disp = '';
   if (pnWidth=='')      { pnWidth = 800; }
   if (pbBlockNone=='')  { pbBlockNone = 'none'; }
   var curStyle=" display:" + pbBlockNone + "; font-style:italic; font-size:18px; background:white; border-top:thin solid black; border-left:thin solid black; border-right:thin solid black; border-bottom:thin solid black;" 
   disp += '<div id="banner">'
   disp += '   <table id="ContactInfo" align="center" width="' + pnWidth + '" border="0" cellspacing="0" cellpadding="0" class="styleAqua" style="' + curStyle + '">'
	disp += '      <tr height="25">'
	disp += '         <td width="15">&nbsp;</td>'
	disp += '         <td>&nbsp;</td>'
	disp += '         <td align="center">'
	disp += '            <img src="\/images\/phone4.gif" height="20" width="30" alt="telephone">'
	disp += '         </td>'
	disp += '         <td width="15">&nbsp; </td>'
	disp += '         <td align="center">'
	disp += '            604.945.5758'
	disp += '         </td>'
	disp += '         <td width="25">&nbsp;</td>'
	disp += '         <td rowspan="2">'
	disp += '            <IMG src="\/images\/CanadaMadeEnglish.jpg" height="58" width="60" ALT="Made In Canada">'
	disp += '         </td>'
	disp += '      </tr>'
	disp += '      <tr height="25">'
	disp += '         <td>&nbsp;</td>'
	disp += '         <td>&nbsp;</td>'
	disp += '         <td align="center">'
	disp += '            <img src="\/images\/envelope.gif" height="15" width="30">'
	disp += '         </td>'
	disp += '         <td>&nbsp;</td>'
	disp += '         <td align="center" style="padding-bottom:3px">'
	disp += '           <input id="SKemail" name="SKemail" type="button" value="email us" style=" font-size:18px;cursor:pointer"'
	disp += '             onclick="Javascript:window.location.href=\'https://www.spraykleen.com/eq.php\';">'
	disp += '         </td>'
	disp += '         <td>&nbsp;</td>'
	disp += '      </tr>'
	disp += '   </table>'
	disp += '</div>'
	//	alert( "func_main.js   |   display_ContactInfo()") ;
	document.write(disp)
} // EOF: display_ContactInfo()

function display_orderInfo( pnWidth, pbBlockNone ){
   var disp = '';
   if (pnWidth=='')      { pnWidth = 956; }
   if (pbBlockNone=='')  { pbBlockNone = 'none'; }
   var curStyle=" display:" + pbBlockNone + "; font-style:italic; font-size:18px; background:white; border-top:thin solid black; border-left:thin solid black; border-right:thin solid black; border-bottom:thin solid black;" 
   disp += '<div id="banner">'
   disp += '   <table id="ContactInfo" align="center" width="' + pnWidth + '" border="0" cellspacing="0" cellpadding="0" class="styleAqua" style="' + curStyle + '">'

	disp += '      <tr height="30">'
	disp += '         <td>&nbsp;</td>'
	disp += '         <td align="left" colspan="2"><span class="orange22">How to Order</span></td>'
	disp += '      </tr>'

	disp += '      <tr height="30">'
	disp += '         <td width="35">&nbsp;</td>'
	disp += '         <td align="left" colspan="5">'
	disp += '            <div>'
	disp += '            Placing an order online is as simple as <b>1-2-3 pages</b> and an order confirmation page.'
	disp += '            <br/>'
	disp += '            Reduce your carbon print, order online for direct postal delivery to your mail doorstep.'
	disp += '            <br/><br/>'
	disp += '            1. &nbsp;<b>SHOP</b> page 1 - <b>select the products</b> you wish to add to your shopping cart.'
	disp += '            <br/>'
	disp += '            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Click the &lt;view cart&gt; button if the cart isn\'t empty or click your country to start over.'
	disp += '            <br/><br/>'
	disp += '            2. &nbsp;<b>CART</b> page 2 - view what is in your <b>shopping cart</b>. Return to the shop as neccesary.<br/>'
	disp += '            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Fill in your bill-to address, select freight, and a separate ship-to address if so desired.'
	disp += '            <br/>'
	disp += '            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;If you make any changes on this page, click on &lt;update cart&gt; to apply your changes.'
	disp += '            <br/><br/>'
	disp += '            3. &nbsp;<b>CHECKOUT</b> page 3 - select and fill in your choice of payment method.<br/>'
	disp += '            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Pay with: credit card online, telephone us your credit card info, or send a cheque.'
	disp += '            <br/>'
	disp += '            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Check all your input info then click &#60;confirm order&#62; to submit &amp; <b>commit your order</b>.'
	disp += '            <br/><br/>'
	disp += '            4. &nbsp;Order confirmation page - write down your <b>order confirmation</b> ID or print the page.<br/>'
	disp += '            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;That is all there is to it! &nbsp; For questions please &nbsp;'
	disp += '            <input id="SKemail" name="SKemail" type="button" value="email us" style="font-size:16px;cursor:pointer; height:25px; width:70px;"'
	disp += '           onclick="Javascript:window.location.href=\'https://www.spraykleen.com/eq.php\';"> &nbsp; or call &nbsp; '
	disp += '            <img src="/images/phone4.gif" alt="phone">&nbsp; 604.945.5758'
	disp += '            <br/><br/>'
	disp += '            </div>'
	disp += '         </td>'
	disp += '      </tr>'

//	disp += '   </table>'
//	disp += '   <table id="ContactInfo" align="center" width="' + pnWidth + '" border="1" cellspacing="0" cellpadding="0" class="styleAqua" style="' + curStyle + '">'

	disp += '      <tr valign="top">'
	disp += '         <td>&nbsp;</td>'
	disp += '         <td align="left">'
	disp += '            <img title="Prices include freight shipping and handling via Postal delivery direct to your mail doorstep." src="/images/qmarkwb.png" alt="help" style="cursor:pointer" width="25" height="25" onClick="alert(\'\nPrices include freight shipping and handling via Postal delivery direct to your mail doorstep.\n &nbsp;\')">'
	disp += '            <span style="font-style:italic; font-size:20px;"> Prices</span>'
	disp += '         </td>'
	disp += '         <td align="left">'
	disp += '            <img title="We&acute;ll ship and email you via Expedited Post as soon as possible after we receive payment." src="/images/qmarkwb.png" alt="help" style="cursor:pointer" width="25" height="25" onClick="alert(\'\nWe\'ll ship and email you via Expedited Post as soon as possible after we receive payment.\n &nbsp;\')">'
	disp += '            <span style="font-style:italic; font-size:20px;"> Shipping</span>'
	disp += '         </td>'
	disp += '         <td align="left">'
	disp += '            <img title="Satisfaction money-back guarantee. If you are not satisfied, return for refund less shipping." src="/images/qmarkwb.png" alt="help" style="cursor:pointer" width="25" height="25" onClick="alert(\'\nSatisfaction money-back guarantee. If you are not satisfied, return for refund less shipping.\n &nbsp;\')">'
	disp += '            <span style="font-style:italic; font-size:20px;"> Return</span>'
	disp += '         </td>'
	disp += '         <td align="left">'
	disp += '            <img title="We do not share any information about our valued customers with anyone." src="/images/qmarkwb.png" alt="help" style="cursor:pointer" width="25" height="25" onClick="alert(\'\nWe do not share any information about our valued customers with anyone.\n &nbsp;\')">'
	disp += '            <span style="font-style:italic; font-size:20px;"> Privacy</span>'
	disp += '         </td>'
	disp += '         <td>&nbsp;'
	disp += '            <a id="ORDEREND" href="#ORDEREND"><span style="border:none; background-color:white"&nbsp;</a>'
	disp += '         </td>'
	disp += '      </tr>'

	disp += '      <tr valign="top">'
	disp += '         <td>&nbsp;</td>'
	disp += '      </tr>'

	disp += '   </table>'
	disp += '</div>'
	//	alert( "func_main.js   |   display_orderInfo()") ;
	document.write(disp)
}// eof: display_orderInfo()

function display_shippInfo( pnWidth, pbBlockNone ){
   var disp = '';
   if (pnWidth=='')      { pnWidth = 956; }
   if (pbBlockNone=='')  { pbBlockNone = 'none'; }
   var curStyle=" display:" + pbBlockNone + "; font-style:italic; font-size:18px; background:white; border-top:thin solid black; border-left:thin solid black; border-right:thin solid black; border-bottom:thin solid black;" 

   disp += '<div id="banner">'
   disp += '   <table id="ShippInfo" align="center" width="' + pnWidth + '" border="0" cellspacing="0" cellpadding="0" class="styleAqua" style="' + curStyle + '">'
	disp += '      <tr>'
	disp += '         <td width="35">&nbsp;</td>'
	disp += '         <td align="left" colspan="2"><span class="orange22">Shipping</span></td>'
   	disp += '      </tr>'

	disp += '      <tr>'
	disp += '         <td>&nbsp;</td>'
	disp += '         <td align="center" width="156">'
	disp += '            <img src="/images/164794Postie_lowres.jpg" alt="postman" name="postie" width="100px" height="120" id="areapostie"/>'
	disp += '         </td>'
	disp += '         <td align="left" width="800">'
	disp += '            Your purchase will be delivered direct to your mail doorstep via post-mail.<br/>'
	disp += '            The Post system is our shipper of choice, both nationally and internationally.<br/>'
	disp += '            Prices include the cost of shipping and handling by Post to delivery address.<br/>'
	disp += '            We\'ll ship and email you as soon as possible after we receive payment.<br/>'
	disp += '            Delivery time involves both Post delivery standards and our fullfilment time<br/>'
	disp += '            Allow approximately 3+ business days, double that to the United States.<br/>'
	disp += '       <!-- Shipments to the USA may be delayed due to customs regulations.<br/>-->'
	disp += '            <br/>'
	disp += '         </td>'
	disp += '         <td>&nbsp;'
	disp += '            <a id="SHIPEND" href="#SHIPEND"><span style="border:none; background-color:white"&nbsp;</a>'
	disp += '         </td>'
   	disp += '      </tr>'
	disp += '   </table>'
	disp += '</div>'
	//	alert( "func_main.js   |   shippInfo()") ;
	document.write(disp)
}// eof: display_shippInfo()

function set_yearsOperated( pcParam1, pcParam2, pcParam3 ) {
		var SKyears = "" ;
		//	DIFF years and since YEAR
		SKyears += "" + pcParam1 + get_MyYear( 'DIFF' ) + pcParam2 + "<b>1968<\/b>" + pcParam3 ;
		//	SKyears += "" + pcParam1 + get_MyYear( 'DIFF' ) + pcParam2 + get_MyYear( 'YEAR' ) + pcParam3 ;
		// time of day
		/*
		SKyears += "<span class='black12'>"
				+ ' &#160&#160' + get_TimeText() + ' &#160&#160' + get_DateText( 'short', 'short' );
				+ "<\/span>"
		*/
		//	SKyears += "<span class='black12'>" + dateStamp( 'center' ) + "<\/span>"
		document.write(SKyears) ;
	} // EOF: set_yearsOperated()

function set_AllRights( pnWidth ) {
	var dNow  = new Date();
	var dYear = dNow.getFullYear() ;
	var MSI = "";
	MSI += "<table align='center' width=" + pnWidth;
	MSI += " style='font-style:italic; font-size:18px; background:white;'>";
	MSI += "<tr>";
	MSI += "<td align='center'>";
	MSI += "<span class=\"black12\"> "
	MSI += '&copy; Copyright ' + dYear + ' Meadow Sales Inc.  All rights reserved.' + '  Spray Kleen&trade;&reg;'
	MSI += "<\/span>";
	MSI += "<\/td>";
	MSI += "<\/tr>";
	MSI += "<\/table>"
	document.write(MSI)
} // EOF: set_AllRights()

function validate_phone( pcPhone ) {
	var bRet = false
	var cCur = '' + removeLeadingAndTrailingChar( pcPhone, ' ' )
	var cPhone = ''
	for (var k=0; k<cCur.length; k++) {
		temp = '' + cCur.substring(k,k+1) ;
		if ( (temp>='0') && (temp<='9') ) { cPhone += temp } // keep only the digits
	}
	if (cPhone.length==10) {
		bRet = !isNaN( parseInt( cPhone, 10 ) )
	}
	if (!bRet) { alert( "Invalid telephone number - must contain 10 digits." ) }
	return bRet
} // EOF: validate_phone()

function validate_eMail( peMail ) {
	var bRet = false
	var cCur = '' + removeLeadingAndTrailingChar( peMail, " " )
	var nL = cCur.length
	if (nL>0) {
		var temp =     (cCur.substring(0,1)!='@')     && (cCur.substring(0,1)!='.')
		temp = temp && (cCur.substring(nL-1,nL)!='@') && (cCur.substring(nL-1,nL)!='.') ;
		if (temp==true) {
			var aKount = new Array( 0, 0, 0 )
			for (var k=0; k<nL; k++) {
				temp = '' + cCur.substring(k,k+1) ;
				if (temp=='@') {aKount[0]++} // only once @
				if (temp=='.') {aKount[1]++} // only once .
				if (temp==' ') {aKount[2]++} // no spaces
			}
			bRet = ( (aKount[0]==1) && (aKount[1]>=1) && (aKount[2]==0) )
		}
	}
	if (!bRet) { alert( "Invalid email address." ) }
	return bRet
} // EOF: validate_eMail()

function parsePhone( pcPhone ) {
// format a North America Phone Number
	var cCur = '' + removeLeadingAndTrailingChar( pcPhone, ' ' )
	var cPhone = ''
	var n = 0
	for (var k=0; k<cCur.length; k++) {
		temp = '' + cCur.substring(k,k+1) ;
		if ( (temp>='0') && (temp<='9') ) {
			if (n==3) { cPhone += '  ' } ;
			if (n==6) { cPhone += '-' } ;
			cPhone += temp ;  // keep only the digits
			n++
		}
	}
	return cPhone
} // EOF: parsePhone()

var africaArray =  new Array("('Select country','',true,true)",
"('Ethiopia')",
"('Somalia')",
"('South Africa')",
"('Other')");
var middleeastArray =  new Array("('Select country','',true,true)",
"('Egypt')",
"('Iran')",
"('Israel')",
"('Kuwait')",
"('Lebanon')",
"('Morocco')",
"('Saudi Arabia')",
"('Syria')",
"('Turkey')",
"('U. A. Emirates')",
"('Other')");
var asiaArray =  new Array("('Select country','',true,true)",
"('Armenia')",
"('Bangladesh')",
"('Cambodia')",
"('China')",
"('India')",
"('Indonesia')",
"('Japan')",
"('Malaysia')",
"('Myanmar')",
"('Nepal')",
"('Pakistan')",
"('Philippines')",
"('Singapore')",
"('South Korea')",
"('Sri Lanka')",
"('Taiwan')",
"('Thailand')",
"('Uzbekistan')",
"('Vietnam')",
"('Other')");
var europeArray =  new Array("('Select country','',true,true)",
"('Albania')",
"('Austria')",
"('Belarus')",
"('Belgium')",
"('Bosnia')",
"('Bulgaria')",
"('Croatia')",
"('Cyprus')",
"('Czech Rep.')",
"('Denmark')",
"('Estonia')",
"('Finland')",
"('France')",
"('Germany')",
"('Greece')",
"('Hungary')",
"('Iceland')",
"('Ireland')",
"('Italy')",
"('Latvia')",
"('Liechtenstein')",
"('Lithuania')",
"('Luxembourg')",
"('Macedonia')",
"('Malta')",
"('Monaco')",
"('Netherlands')",
"('Norway')",
"('Poland')",
"('Portugal')",
"('Romania')",
"('Russia')",
"('Slovakia')",
"('Slovenia')",
"('Spain')",
"('Sweden')",
"('Switzerland')",
"('Ukraine')",
"('United Kingdom')",
"('Other')");
var australiaArray =  new Array("('Select country','',true,true)",
"('Australia')",
"('New Zealand')",
"('Other')");
var lamericaArray =  new Array("('Select country','',true,true)",
"('Costa Rica')",
"('Cuba')",
"('El Salvador')",
"('Guatemala')",
"('Haiti')",
"('Jamaica')",
"('Mexico')",
"('Panama')",
"('Other')");
var namericaArray =  new Array("('Select country','',true,true)",
"('Canada')",
"('USA')");
var samericaArray =  new Array("('Select country','',true,true)",
"('Argentina')",
"('Bolivia')",
"('Brazil')",
"('Chile')",
"('Colombia')",
"('Ecuador')",
"('Paraguay')",
"('Peru')",
"('Suriname')",
"('Uruguay')",
"('Venezuela')",
"('Other')");

function populateCountry(oRegion, oCountry, selected) {
	// populate the country options according to the region selected
	var selectedArray = eval(selected + "Array");
	while (selectedArray.length < oCountry.options.length) {
		oCountry.options[(oCountry.options.length - 1)] = null;
	}
	for (var i=0; i < selectedArray.length; i++) {
		eval("oCountry.options[i]=" + "new Option" + selectedArray[i]);
	}
	if (oRegion.options[0].value == '') {
		oRegion.options[0]= null;
	if ( navigator.appName == 'Netscape') {
		if (parseInt(navigator.appVersion, 10)<4 || navigator.platform=='Win16') {window.history.go(-1)}
	}
	/*
		if ( navigator.appName == 'Netscape') {
			if (parseInt(navigator.appVersion, 10) < 4) { window.history.go(0); }
			else {   	
				if (navigator.platform == 'Win32' || navigator.platform == 'Win16') {
					window.history.go(0);
				}
			}
		}
	*/
	}
} // EOF: populateCountry()

	var rollOverArr=new Array();
	function setrollover(OverImgSrc,pageImageName)
	{
		// set the source of the image to display when the mouse moves over the image
		if (! document.images)return;
		if (pageImageName == null)
		pageImageName = document.images[document.images.length-1].name;
		rollOverArr[pageImageName]=new Object;
		rollOverArr[pageImageName].overImg = new Image;
		rollOverArr[pageImageName].overImg.src=OverImgSrc;
	}

	function rollover(pageImageName)
	{
		// for onMouseOver
		if (! document.images)return;
		if (! rollOverArr[pageImageName])return;
		if (! rollOverArr[pageImageName].outImg)
		{
		rollOverArr[pageImageName].outImg = new Image;
		rollOverArr[pageImageName].outImg.src = document.images[pageImageName].src;
		}
		document.images[pageImageName].src=rollOverArr[pageImageName].overImg.src;
	}

	function rollout(pageImageName)
	{
		// for onMouseOut
		if (! document.images)return;
		if (! rollOverArr[pageImageName])return;
		document.images[pageImageName].src=rollOverArr[pageImageName].outImg.src;
	}

// End

//************************************************************************************************
//		WIP									Works In Progress								WIP
//------------------------------------------------------------------------------------------------

