	//-------------------------------------------------------------------------------------------------------
	//
	//  date related
	//
	//-------------------------------------------------------------------------------------------------------
	var browserName
	
	var now = new Date();
	// Array list of days.
	var days = new Array('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday');

	// Array list of months.
	var months = new Array('January','February','March','April','May','June','July','August','September','October','November','December');

	// now.getDate() retruns current day of the month
	//      add leading zero is less than 10
	var date = ((now.getDate()<10) ? "0" : "")+ now.getDate();
	// FORMAT DATE together
	today =  days[now.getDay()] + ", " +
              months[now.getMonth()] + " " +
               date + ", " +
                (fourdigits(now.getYear())) ;

	var mouse_X = 0;
	var mouse_Y = 0;
	
	

	// Global variables
	xMousePos = 0; // Horizontal position of the mouse on the screen
	yMousePos = 0; // Vertical position of the mouse on the screen
	xMousePosMax = 0; // Width of the page
	yMousePosMax = 0; // Height of the page


	//if (document.layers) { // Netscape
  //  	document.captureEvents(Event.MOUSEMOVE);
  //  	document.onmousemove = mouseMove;
	//} else if (document.all) { // Internet Explorer
  //  	document.onmousemove = mouseMove;
	//} else if (document.getElementById) { // Netcsape 6
  //  	document.onmousemove = mouseMove;
	//}
  //
	//-------------------------------------------------------------------------------------------------------
	//
	//
	//-------------------------------------------------------------------------------------------------------

//	function mouseMove(e) {
//  		xMousePos = mouseX(e)
//  		yMousePos = mouseY(e)
//  		window.status = "xMousePos=" + xMousePos + ", yMousePos=" + yMousePos + ", xMousePosMax=" + xMousePosMax + ", yMousePosMax=" + yMousePosMax;
//  		return true
//	}
//
//	function mouseX(evt) {
//if (evt.pageX) return evt.pageX;
//else if (evt.clientX)
//   return evt.clientX + (document.documentElement.scrollLeft ?
//   document.documentElement.scrollLeft :
//   document.body.scrollLeft);
//else return null;
//}
//function mouseY(evt) {
//if (evt.pageY) return evt.pageY;
//else if (evt.clientY)
//   return evt.clientY + (document.documentElement.scrollTop ?
//   document.documentElement.scrollTop :
//   document.body.scrollTop);
//else return null;
//}



	//-------------------------------------------------------------------------------------------------------
	//
	//		extent array object
	//
	//-------------------------------------------------------------------------------------------------------

 	Array.prototype.clear=function()
 	{
 		 this.length = 0;
 	};

	String.prototype.trim = function()
	{
		return this.replace(/^\s+|\s+$/g,"");
	}





	//-------------------------------------------------------------------------------------------------------
	//
	//    used in the doc results
	//
	//-------------------------------------------------------------------------------------------------------

	var menu_selection="";
	var radio_selection="";

	var docDetailArr ;


	function displayDocDetails(member_num)
	{
		docDetailArr=getDocDetails(member_num);
	}

	function showDocDetails(member_num)
	{
		member_num = "doc_" + member_num;
		buttonObjColor	=document.getElementById(member_num+"-showbutton").style;
		rollUpClassName      = "";
		rollDownClassName ="";

		if (buttonObjColor.backgroundColor==darkBlue||buttonObjColor.backgroundColor=="rgb(0, 72, 131)")
		{
			// roll up show and roll down display
			rollUpClassName = "show";
			rollDownClassName = "display";
			buttonObjColor.backgroundColor=lightBlue;
		}
	  	else if (buttonObjColor.backgroundColor==lightBlue||buttonObjColor.backgroundColor=="rgb(216, 236, 253)")
	  	{
	  		// roll up display and leave
			rollUpClassName = "display";
			rollDownClassName = "";

			buttonObjColor.backgroundColor=darkRed;
		}
	  	else if (buttonObjColor.backgroundColor==darkRed||buttonObjColor.backgroundColor=="rgb(137, 0, 0)")
	  	{
	  		// roll down show
			rollUpClassName = "";
			rollDownClassName = "show";

			if (browserName=="Firefox")
			{
				buttonObjColor.backgroundColor=darkBlueRGB;
			}
			else
			{
				buttonObjColor.backgroundColor=darkBlue;
			}
	  	}

		// rollup
		if (rollUpClassName!="")
		{
			elObj		=document.getElementById(member_num);
			elArr=getElementsByClass(rollUpClassName,elObj, "div");
			elArrSize = elArr.length;

			for (x=0; x<elArrSize; x++)
			{
				curId=elArr[x].id;
				//Effect.BlindUp(curId);
				document.getElementById(curId).style.display="none";
			}
		}

		// roll down
		if (rollDownClassName!="")
		{
			elArr=getElementsByClass(rollDownClassName,elObj, "div");
			elArrSize = elArr.length;

			for (x=0; x<elArrSize; x++)
			{
				curId=elArr[x].id;
				Effect.Grow(curId);
				//document.getElementById(curId).style.display="block";
			}


		}
	}

	function hideDocDetails(member_num)
	{}
	function getDocDetails(member_num)
	{
		var docArr = new Array();
		elObj=document.getElementById(member_num);
		elArr=getElementsByClass(member_num,elObj, "div");
		elArrSize = elArr.length;

		stripMemNum =member_num+"-";

		for (x=0; x<elArrSize; x++)
		{
			curId=elArr[x].id;
			curVal=document.getElementById(curId).firstChild.nodeValue;

			//------------------------------------------------------------
			// the id is structured to indicate sub values
			// remove the member number prefix
			// the structure:
			//		1st part the member number
			//      2nd part the data field name
			//      3rd (if it exist) is the occurrace of the data field
			//          examples are address, specialty and phone number
			//------------------------------------------------------------
			curId=trim(curId.replace(stripMemNum,""));

			// split element id into sub parts - [address] [(1,2,3)] etc
			curIdArr = curId.split("-");

			fldName = curIdArr[0];

			if (curIdArr.length>1) // fld name has more than 1 part
			{
				// curIdArr[1] is the 2nd part of the id is the seq num
				z = Number(curIdArr[1]);
				// if this the 1st occurance of the fld create an Array
				// to contain the repeating fld values
				if (z==1){docArr[fldName]=new Array() }
				docArr[fldName][z] = curVal;
			}
			else
			{
				docArr[fldName]=curVal;
			}
		}
//alert (dump(docArr,2));
		return docArr;
	}

	function getElementsByClass(searchClass,node,tag)
	{
		// node = parent
		// tag - html tag (usually a div)
		var classElements = new Array();

		if ( node == null )
		{
			node = document;
		}

		if ( tag == null )
		{
			tag = '*';
		}

		var els = node.getElementsByTagName(tag);

		var elsLen = els.length;
		var pattern = new RegExp("(^|\\s)"+searchClass+"(\\s|$)");

		for (i = 0, j = 0; i < elsLen; i++) {
			if ( pattern.test(els[i].className) )
			{
				classElements[j] = els[i];
				j++;
			}
		}

		return classElements;
	}

	function isArray(obj)
	{
   		if (obj.constructor.toString().indexOf("Array") == -1)
      		return false;
   		else
      		return true;
	}

	//-------------------------------------------------------------------------------------------------------
	//
	//   cookie functions
	//
	//-------------------------------------------------------------------------------------------------------

	// This next little bit of code tests whether the user accepts cookies.
	var acceptsCookies = false;
	if(document.cookie == '') {
	    document.cookie = 'acceptsCookies=yes'; // Try to set a cookie.
	    if(document.cookie.indexOf('acceptsCookies=yes') != -1) {
		acceptsCookies = true;
	    }// If it succeeds, set variable
	} else { // there was already a cookie
	  acceptsCookies = true;
	}


	function setCookie (name, value, hours, path, domain, secure) {
	    if (acceptsCookies) { // Don't waste your time if the browser doesn't accept cookies.
		var not_NN2 = (navigator && navigator.appName
			       && (navigator.appName == 'Netscape')
			       && navigator.appVersion
			       && (parseInt(navigator.appVersion) == 2))?false:true;

		if(hours && not_NN2) { // NN2 cannot handle Dates, so skip this part
		    if ( (typeof(hours) == 'string') && Date.parse(hours) ) { // already a Date string
			var numHours = hours;
		    } else if (typeof(hours) == 'number') { // calculate Date from number of hours
			var numHours = (new Date((new Date()).getTime() + hours*3600000)).toGMTString();
		    }
		}
		document.cookie = name + '=' + escape(value) + ((numHours)?(';expires=' + numHours):'') + ((path)?';path=' + path:'') + ((domain)?';domain=' + domain:'') + ((secure && (secure == true))?'; secure':''); // Set the cookie, adding any parameters that were specified.
	    }
	} // setCookie


	function readCookie(name) {
	    if(document.cookie == '') { // there's no cookie, so go no further
		return false;
	    } else { // there is a cookie
		var firstChar, lastChar;
		var theBigCookie = document.cookie;
		firstChar = theBigCookie.indexOf(name);	// find the start of 'name'
		var NN2Hack = firstChar + name.length;
		if((firstChar != -1) && (theBigCookie.charAt(NN2Hack) == '=')) { // if you found the cookie
		    firstChar += name.length + 1; // skip 'name' and '='
		    lastChar = theBigCookie.indexOf(';', firstChar); // Find the end of the value string (i.e. the next ';').
		    if(lastChar == -1) lastChar = theBigCookie.length;
		    return unescape(theBigCookie.substring(firstChar, lastChar));
		} else { // If there was no cookie of that name, return false.
		    return false;
		}
	    }
	} // readCookie

	function killCookie(name, path, domain) {
	  var theValue = readCookie(name); // We need the value to kill the cookie
	  if(theValue) {
	      document.cookie = name + '=' + theValue + '; expires=Fri, 13-Apr-1970 00:00:00 GMT' + ((path)?';path=' + path:'') + ((domain)?';domain=' + domain:''); // set an already-expired cookie
	  }
	} // killCookie


	function mouseHelp(reqParent,helpTag,helpMsgState,helpMsg)
	{
//alert(mouseHelp.arguments.length);
//alert("mouseHelp -> "+reqParent+"**"+helpTag+"**"+helpMsgState+"**"+helpMsg)
			helpLocStyle 	=document.getElementById(helpTag).style;
			helpLoc			=document.getElementById(helpTag);
			reqLocStyle		=document.getElementById(reqParent).style;

			//reqLocTop = String((reqLocStyle.top.substring(0,Number(reqLocStyle.top.length)-2 ))+20)+"px";
			//reqLocTop = "25px";

//alert("mouseHelp "+helpLocStyle.width);
			helpWidth=helpLocStyle.width;
			//helpWidth=trim(helpWidth.replace("px",""));
			helpWidth=helpWidth.substring(0,Number(helpWidth.length)-2 );
			helpLocStyle.left=(xMousePos-(helpWidth/2))+"px";

//alert("mouse_X "+mouse_X);


			if(browserName=="IE")
			{
				reqLocWidth = reqLocStyle.width;

				reqLocWidth=reqLocWidth.substring(0,Number(reqLocWidth.length)-2 );
				reqLocWidth = reqLocWidth/2;

				reqLocLeft = reqLocStyle.left;
				reqLocLeft=reqLocLeft.substring(0,Number(reqLocLeft.length)-2 );

				helpWidth=helpLocStyle.width;
				helpWidth=helpWidth.substring(0,Number(helpWidth.length)-2 );
				helpWidth=helpWidth/3;

				helpLocStyle.left=(reqLocLeft-reqLocWidth-helpWidth)+"px";
			}

			helpLocStyle.display = helpMsgState;

			if (mouseHelp.arguments.length>3)
			{
				document.getElementById(helpTag).innerHTML=helpMsg;
			}

	}

	//-------------------------------------------------------------------------------------------------------
	//
	//
	//-------------------------------------------------------------------------------------------------------

	function capFirstLetter(obj) {
	// this will capitalize names like van der hoff
      val = obj.value.toLowerCase();
      newVal = '';
      val = val.split(' ');
      for(var c=0; c < val.length; c++)
       {
      	if (c < val.length-1)
      	{
      		newVal += val[c].substring(0,1).toUpperCase()+val[c].substring(1,val[c].length) + ' ';
      	}
      	else
      	{
      		newVal += val[c].substring(0,1).toUpperCase()+val[c].substring(1,val[c].length);
      	}
      }
      obj.value = newVal;

	// this will capitalize names like smith-kline or hypenated words
	  var dash = /^[-]*$/
	  // check to see if "-" are present
     	 val = obj.value;
      	newVal = '';
      	val = val.split('-');
      	for(var c=0; c < val.length; c++)
      	{
      		if (c < val.length-1)
      		{
      			newVal += val[c].substring(0,1).toUpperCase()+val[c].substring(1,val[c].length) + '-';
      		}
      		else
      		{
      			newVal += val[c].substring(0,1).toUpperCase()+val[c].substring(1,val[c].length);
      		}
      	}
      obj.value = newVal;

	// this will capitalize names like smith-kline
     	 val = obj.value;
      	newVal = '';
      	val = val.split("'");
      	for(var c=0; c < val.length; c++)
      	{
      		if (c < val.length-1)
      		{
      			newVal += val[c].substring(0,1).toUpperCase()+val[c].substring(1,val[c].length) + "'";
      		}
      		else
      		{
      			newVal += val[c].substring(0,1).toUpperCase()+val[c].substring(1,val[c].length);
      		}
      	}
      obj.value = newVal;
    //}


	}



	//-------------------------------------------------------------------------------------------------------
	//
	//
	//-------------------------------------------------------------------------------------------------------

	function fldChange(obj,errfld,formbot,req,wildfld)
	{
		if (validateName(obj,errfld,formbot,req))
		{
			capFirstLetter(obj);
		}
	}


	//-------------------------------------------------------------------------------------------------------
	//
	//
	//-------------------------------------------------------------------------------------------------------

	// validate name  field
	function checkName(theField)
	{

		var length =theField.value.length;
		newval ="";
		if ((!alpha.test(theField.value)&&theField.value.length>0)||
					((theField.value.indexOf("*")!=-1)&&(theField.value.indexOf("*")==0))||
					((theField.value.indexOf("*")!=-1)&&(theField.value.indexOf("*")!=(theField.value.length -1))))
		{
			for (i=0; i<length; i++) {
				if (i==0 && theField.value.charAt(i) =="*")
				{
					newval +="";
				}
	    		else if (!(alpha.test(theField.value.charAt(i) )))
	    		{
					newval +="";
	    		}
	    		else
	    		{
	    			newval +=theField.value.charAt(i);
	    		}
	  		}

	  		theField.value=newval;
		}
	}
		//-------------------------------------------------------------------------------------------------------
		//
		//
		//-------------------------------------------------------------------------------------------------------

	// validate amount  field
	function checkAmount(theField,themin,themax)
	{
		length =theField.value.length;
		curVal =theField.value;
		clearVal ="0";
		if (length>0)
		{
			if (curVal<themin)
			{
				newval =clearVal;
			}
	    	else if (curVal>themax)
	    	{
				newval =clearVal;
	    	}
	    	else
	    	{
	    		newval =theField.value;
	    	}
	  }
	  else
	  {
	  	newval =clearVal;
	  }

	  theField.value=newval;
	}

		//-------------------------------------------------------------------------------------------------------
		//
		//
		//-------------------------------------------------------------------------------------------------------

	// validate amount  field > 0
	function testQty(theField)
	{
				if (theField>0)
				{
					return true;
				}
	    		else
	    		{

					return false;
	    		}
	}

	//-------------------------------------------------------------------------------------------------------
	//
	//
	//-------------------------------------------------------------------------------------------------------

	function validateName  (vfld,   // element to be validated
                         ifld,   // id of element to receive info/error msg
                         formbot,   // id of element to receive info/error msg
                         reqd)   // true if required
	{

		var elem="";
		var subelem="";
		if (document.getElementById)
		{
			elem=document.getElementById(ifld);
			subelem=document.getElementById(formbot);
		}
		else
		{
			elem=document[ifld];
			subelem=document[formbot];
		}

		// if the eror msg area is visible delete the msg and hide
		if (elem.style.display ==	"block")
		{
			elem.removeChild(elem.childNodes[0]);
			elem.style.display =	"none";
			subelem.style.display =	"block";
		}

		//validation using regualar expression
		// remember to place forward slashes at
		// the start and end of an expression for js

		// adjust the length
		var numeric =/^\d{5}$/
		var tfld = trim(vfld.value);
		// check for validate character combinations and if an asterisk
		// is present at the end of the string
		if ((!alpha.test(tfld)&&tfld.length>0)||
				((tfld.indexOf("*")!=-1)&&(tfld.indexOf("*")==0))||
				((tfld.indexOf("*")!=-1)&&(tfld.indexOf("*")!=(tfld.length -1))))
		{
			var mytext=document.createTextNode("Error Msg: Only alphabetic characters,  hyphens(-) , apostrophes ('), asterisk (*) or spaces are permitted")
			elem.style.display =	"block";
			subelem.style.display =	"none";
			elem.appendChild(mytext)
    		vfld.focus();
    		return false;
 		 }

		return true
	}

	//-------------------------------------------------------------------------------------------------------
	//
	//
	//-------------------------------------------------------------------------------------------------------


	function validateZip  (vfld,   // element to be validated
                         ifld,   // id of element to receive info/error msg
                         formbot,   // id of element to receive info/error msg
                         reqd)   // true if required
	{
		var elem="";
		var subelem="";
		if (document.getElementById)
		{
			elem=document.getElementById(ifld);
			subelem=document.getElementById(formbot);
		}
		else
		{
			elem=document[ifld];
			subelem=document[formbot];
		}

		// if the eror msg area is visible delete the msg and hide
		if (elem.style.display ==	"block")
		{
			elem.removeChild(elem.childNodes[0]);
			elem.style.display =	"none";
			subelem.style.display =	"block";
		}

		//validation using regualar expression
		// remember to place forward slashes at
		// the start and end of an expression for js
		var numeric =/^\d{5}$/

		var tfld = trim(vfld.value);
		// check for validate character combinations and if an asterisk
		// is present at the end of the string
		if (!numeric.test(tfld))
		{
			var mytext=document.createTextNode("Error Msg: Enter 5 numbers, no more no less")
			elem.style.display =	"block";
			subelem.style.display =	"none";
			elem.appendChild(mytext)
    		vfld.focus();
    		return false;
 		 }
		return true
	}


	function  checkForm(searchform) {

		if ((dropDown(searchform.specialty) &&
			(dropDown(searchform.region) ||
			textZip(searchform.zipstart))) ||
			textDocName(searchform.doclastname))
		{

			return true;
	   }
		else {
			alert("\t Insufficient information entered \r\n use the Screen Help button for instructions on searching \r\n\t before requesting another search\r\n\t\tThank You");
			return false;
	   }
	} // end of js checkForm

	//-------------------------------------------------------------------------------------------------------
	//
	//
	//-------------------------------------------------------------------------------------------------------

	function dropDown(ddname)  {
		var myindex=ddname.selectedIndex;
		if (myindex==0)
		{
			return false;
		}
		else
		{
			return true;
	   }
	} // end of js dropDown



	function textZip(zip)  {
		var myindex=zip.value.length;
		if (myindex==0 ||  myindex<5)
		{
			return false;
		}
		else {
			return true;
	   }
	 }

	//-------------------------------------------------------------------------------------------------------
	//
	//
	//-------------------------------------------------------------------------------------------------------

	function textDocName(name)  {
		var myindex=name.value.length;
		if (myindex==0) {
			return false;
		}
		return true;
	} // end of js textDoc

	//-------------------------------------------------------------------------------------------------------
	//
	//
	//-------------------------------------------------------------------------------------------------------

	/**
	* Function : dump()
	* Arguments: The data - array,hash(associative array),object
	*    The level - OPTIONAL
	* Returns  : The textual representation of the array.
	* This function was inspired by the print_r function of PHP.
	* This will accept some data as the argument and return a
	* text that will be a more readable version of the
	* array/hash/object that is given.
	*/
	function dump(arr,level) {
	var dumped_text = "";
	if(!level) level = 0;

	//The padding given at the beginning of the line.
	var level_padding = "";
	for(var j=0;j<level+1;j++) level_padding += "    ";

	if(typeof(arr) == 'object') { //Array/Hashes/Objects
	 for(var item in arr) {
	  var value = arr[item];

	  if(typeof(value) == 'object') { //If it is an array,
	   dumped_text += level_padding + "'" + item + "' ...\n";
	   dumped_text += dump(value,level+1);
	  } else {
	   dumped_text += level_padding + "'" + item + "' => \"" + value + "\"\n";
	  }
	 }
	} else { //Stings/Chars/Numbers etc.
	 dumped_text = "===>"+arr+"<===("+typeof(arr)+")";
	}
	return dumped_text;
	}


	//-------------------------------------------------------------------------------------------------------
	//
	//
	//-------------------------------------------------------------------------------------------------------

	// Calculate four digit year.
	function fourdigits(number)	{
		return (number < 1000) ? number + 1900 : number;
									}



	//-------------------------------------------------------------------------------
	//-------------------------------------------------------------------------------
	//-------------------------------------------------------------------------------
	/*
 * Copyright (C) 2006 Baron Schwartz <baron at xaprb dot com>
 *
 * This program is free software; you can redistribute it and/or modify it
 * under the terms of the GNU Lesser General Public License as published by the
 * Free Software Foundation, version 2.1.
 *
 * This program is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more
 * details.
 *
 * $Id: html-form-input-mask.js,v 1.6 2006-11-03 04:04:29 baron Exp $
 */

/* Set up a global Xaprb object to act as the Xaprb namespace, without colliding
 * with other Xaprb scripts.
 */
if ( typeof(Xaprb) === 'undefined' ) {
   Xaprb = new Object();
}

/* The Xaprb.InputMask object acts as the namespace for input masking
 * functionality.
 */
Xaprb.InputMask = {

   /* Each mask has a format and regex property.  The format consists
    * of spaces and non-spaces.  A space is a placeholder for a value the user
    * enters.  A non-space is a literal character that gets copied to that
    * position in the value.  The regex is used to validate each character, one
    * at a time (it is not applied against the entire value in the form field,
    * just the characters the user enters).
    *
    * The way you name your masks is significant.  If you create a mask called
    * date_us, you cause it to be applied to a form field by a) adding the
    * input_mask class to that form field, which triggers this script to treat
    * it specially, and b) adding the class mask_date_us to the form field,
    * which causes this script to apply the date_us mask to it.
    *
    *  see http://www.xaprb.com/blog/2006/11/02/how-to-create-input-masks-in-html/
    *
    */
   masks: {
      date_iso: {
         format: '    -  -  ',
         regex:  /\d/
      },
      zip_us: {
         format: '     -    ',
         regex: /\d/
      },
      date_us: {
         format: '  /  /    ',
         regex:  /\d/
      },
      time: {
         format: '  :  :  ',
         regex:  /\d/
      },
      phone: {
         format: '(   )   -    ',
         regex:  /\d/
      },
      ssn: {
         format: '   -  -    ',
         regex:  /\d/
      },
      visa: {
         format: '    -    -    -    ',
         regex:  /\d/
      }
   },

   /* Finds every element with class input_mask and applies masks to them.
    */
   setupElementMasks: function() {
      if ( document.getElementsByClassName ) { // Requires the Prototype library
         document.getElementsByClassName('input_mask').each(function(item) {
            Event.observe(item, 'keypress',
               Xaprb.InputMask.applyMask.bindAsEventListener(item), true);
         });
      }
   },


   /* This is triggered when the key is pressed in the form input.  It is
    * bound to the element, so 'this' is the input element.
    */
   applyMask: function(event) {
      var match = /mask_(\w+)/.exec(this.className);
      if ( match.length == 2 && Xaprb.InputMask.masks[match[1]] ) {
         var mask = Xaprb.InputMask.masks[match[1]];
         var key  = Xaprb.InputMask.getKey(event);

         if ( Xaprb.InputMask.isPrintable(key) ) {
            var ch      = String.fromCharCode(key);
            var str     = this.value + ch;
            var pos     = str.length;
            if ( mask.regex.test(ch) && pos <= mask.format.length ) {
               if ( mask.format.charAt(pos - 1) != ' ' ) {
                  str = this.value + mask.format.charAt(pos - 1) + ch;
               }
               this.value = str;
//alert(str)
            }
            Event.stop(event);
         }
      }
   },

   /* Returns true if the key is a printable character.
    */
   isPrintable: function(key) {
      return ( key >= 32 && key < 127 );
   },

   /* Returns the key code associated with the event.
    */
   getKey: function(e) {
      return window.event ? window.event.keyCode
           : e            ? e.which
           :                0;
   }
};



	 var apos = /^[']*$/
	var alpha =/^[A-Za-zÀ-ÖØ-öø-ÿ *'\-\.]{1,30}$/;


	//-------------------------------------------------------------------------------------------------------
	//
	//
	//-------------------------------------------------------------------------------------------------------


	/********************************************************************

Popup Windows - V 4.5
Author: Brian Gosselin
Site URL: http://scriptasylum.com
Read the "releasenotes.txt" for supported features and release notes.

************** EDIT THE LINES BELOW AT YOUR OWN RISK ****************/

	var w3c=(document.getElementById)? true: false;
	var ns4=(document.layers)?true:false;
	var ie5=(w3c && document.all)? true : false;
	var ns6=(w3c && !document.all)? true: false;

	var d=document;
	currIDb=null; xoff=0; yoff=0;
	currRS=null; rsxoff=0; rsyoff=0;
	oldac=null; newac=null; zdx=1; mx=0; my=0;
	var currFb=null; var currFs=null; var currFID=0; var currFcnt=0;
	var cidlist=new Array();

	function popInfo( popid,
								reveal,
								hide,
								msg,
								title,
								width ,
								height ,
								Xaxis,
								Yaxis,
								delaybefore,
								deleayafter  )
  {
		this.popid =         popid;
		this.reveal =        reveal;
		this.hide =        	hide;
		this.msg =           	msg;
		this.title =        		title;
		this.width =        	width ;
		this.height =       	height ;
		this.Xaxis =         	Xaxis;
		this.Yaxis =         	Yaxis;
		this.delaybefore =   delaybefore;
		this.deleayafter =    deleayafter;
	}



	function showPopContoller (popId,popUp,popMsg,popTitle,popWidth,popHeight,popXoffset,popYoffset)
	{
		/*
		(popId,popUp,popMsg,popTitle,popWidth,popHeight,popDelayBefore,popDelayAfter)
			popId
			popUp - how it appears
			popMsg
			popTitle
			popWidth -  0 if no change
			popHeight  -  0 if no change
		*/
//alert ("showPopContoller => "+"popId "+popId+"|popUp "+popUp+"|popMsg "+popMsg+"|popTitle "+popTitle+"|popWidth "+popWidth+"|popHeight "+popHeight)
		changeContent(popId, popMsg);

		changeTitle(popId, popTitle);


		if (browserName!="IE")
		{
			popXoffset = popXoffset-0;
			popYoffset = popYoffset-0;
			if (popYoffset == 999)
			{
				popYoffset = 0;
				popXoffset=popXoffset
				}
		}
		else
		{

			//********** temp*****************
			xMousePos = 50;
			yMousePos	= 50;
			//********************************************
			if (popYoffset == 999)
			{
				popYoffset =50;
				popXoffset=popXoffset+20
				}

		}

		movePopup(popId,xMousePos+popXoffset,yMousePos+popYoffset)

		resizePopup( popId, popWidth ,popHeight );

		switch (popUp)
		{
			case "fade":
				showbox(popId);
				//fadeBoxIn(popId);
				break;
			//case "show":
				//showbox(popId);
				//break;
			case "blind":
				Effect.BlindDown(popId+'_s');
				Effect.BlindDown(popId+'_b');
				break;
		}
	}
	function hidePopContoller (popId,popUp)
	{
		/*
			popId
			popUp - how it disappears
		*/
//alert("hidePopContoller "+popId+"**"+popUp+"**")

		switch (popUp)
		{
			case "fade":
//alert("hidePopContoller2 "+popId+"**"+popUp+"**")
				//fadeboxout(popId);
				hidebox(popId);
				break;
			//case "show":
				//showbox(popId);
				//break;
			case "blind":
				Effect.BlindUp(popId+'_b');
				Effect.BlindUp(popId+'_s');
				break;
		}
	}

//******* START OF EXPOSED FUNCTIONS. THESE CAN BE USED IN HYPERLINKS. *******\\

	function fadeBoxIn(id)
	{
		if((currFb==null) && w3c)
		{
			clearInterval(currFID);
			currFb=d.getElementById(id+'_b');
			currFs=d.getElementById(id+'_s');

			if(currFb.style.display=='none')
			{
				currFcnt=0;

				if(ie5)
				{
					currFb.style.filter=currFs.style.filter="alpha(opacity=0)";
				}
				else
				{
					currFb.style.MozOpacity=currFs.style.MozOpacity=0;
				}

				setAllScrollbars(true);
				currFb.style.display=currFs.style.display='block';
				changez(currFb);
				currFID=setInterval('sub_fadein()',20);
			}
			else
			{
				currFb=null;
			}
		}
	}

	function fadeboxout(id){
		if((currFb==null) && w3c)
		{
			clearInterval(currFID);
			currFb=d.getElementById(id+'_b');
			currFs=d.getElementById(id+'_s');
				if(currFb.style.display=='block')
				{
					currFcnt=100;
					if(ie5)
					{
						currFb.style.filter="alpha(opacity=100)";
						currFs.style.filter="alpha(opacity=50)";
					}
					else
					{currFb.style.MozOpacity=1;

						currFs.style.MozOpacity=.5;
					}
					setAllScrollbars(true);
					currFb.style.display=currFs.style.display='block';
					changez(currFb);
					currFID=setInterval('sub_fadeout()',20);
				}
				else
				{
					currFb=null;
				}
		}
	}

	function hidebox(id){
		if(w3c){
		//if(currFb!=d.getElementById(id+'_b')){
		d.getElementById(id+'_b').style.display='none';
		d.getElementById(id+'_s').style.display='none';
		//}
		}
	}

	function showbox(id){
		if(w3c){
			var bx=d.getElementById(id+'_b');
			var sh=d.getElementById(id+'_s');
			bx.style.display='block';
			sh.style.display='block';
			sh.style.zIndex=++zdx;
			bx.style.zIndex=++zdx;
			if(ns6){
				bx.style.MozOpacity=1;
				sh.style.MozOpacity=.5;
			}else{
				bx.style.filter="alpha(opacity=100)";
				sh.style.filter="alpha(opacity=50)";
			}
		changez(bx);
	}}

	function changeTitle(id,text)
	{
		document.getElementById(id+'_span').innerHTML = text;
	}

	function changeContent(id,text)
	{
		if(!document.getElementById(id+'_b').isExt)
		{
			var d=document.getElementById(id+'_c');
			if(ns6)d.style.overflow="hidden";
			d.innerHTML=text;
			if(ns6)d.style.overflow="block";
		}
		else {document.getElementById(id+'_ifrm').src=text;}
	}

	function movePopup(ids,x,y){
		if(w3c){
			var idb=document.getElementById(ids+'_b');
			var ids=document.getElementById(ids+'_s');
			idb.style.left=x+'px';
			ids.style.left=x+8+'px';
			idb.style.top=y+'px';
			ids.style.top=y+8+'px';
		}}


	function resizePopup(ids,rx,ry)
	{
		if(w3c){
			if(d.getElementById(ids+'_rs').rsEnable)
			{
				d.gEl=d.getElementById;
				d.gEl(ids+"_extWA").style.display="block";
				d.gEl(ids+"_rs").style.left=Math.max(rx,((ie5)?88:92))+'px';
				d.gEl(ids+"_rs").style.top=Math.max(ry,((ie5)?68:72))+'px';
				d.gEl(ids+"_b").style.width=Math.max(rx+((ie5)?12:8),100)+'px';
				d.gEl(ids+"_b").style.height=Math.max(ry+((ie5)?12:8),80)+'px';
				d.gEl(ids+"_t").style.width=Math.max(rx+((ie5)?4:3),((ns6)?95:92))+'px';
				d.gEl(ids+"_btt").style.left=parseInt(d.gEl(ids+"_t").style.width)-48+'px';
				d.gEl(ids+"_s").style.width=Math.max(rx+12,((ie5)?100:104))+'px';
				d.gEl(ids+"_s").style.height=Math.max(ry+((ie5)?12:13),((ie5)?80:86))+'px';
				newWidth = Math.max(rx-((ie5)?-5:5),((ie5)?92:87));
				if (browserName =="IE") newWidth=newWidth-10;
				d.gEl(ids+"_c").style.width=newWidth+'px';
				d.gEl(ids+"_c").style.height=Math.max(ry-((ie5)?24:28),44)+'px';
				d.gEl(ids+"_max").h=parseInt(d.gEl(ids+"_b").style.height);
			}
			else
			{
				d.gEl=d.getElementById;
				d.gEl(ids+"_extWA").style.display="block";
				d.gEl(ids+"_b").style.width=Math.max(rx+((ie5)?12:8),100)+'px';
				d.gEl(ids+"_b").style.height=Math.max(ry+((ie5)?12:8),80)+'px';
				d.gEl(ids+"_t").style.width=Math.max(rx+((ie5)?4:3),((ns6)?95:92))+'px';
				d.gEl(ids+"_s").style.width=Math.max(rx+12,((ie5)?100:104))+'px';
				d.gEl(ids+"_s").style.height=Math.max(ry+((ie5)?12:13),((ie5)?80:86))+'px';
				newWidth = Math.max(rx-((ie5)?-5:5),((ie5)?92:87));
//alert ("**"+browserName+"**")
				if (browserName =="IE") newWidth=newWidth-10;
				d.gEl(ids+"_c").style.width=newWidth+'px';
				d.gEl(ids+"_c").style.height=Math.max(ry-((ie5)?24:28),44)+'px';
			}
		}
	}

	//******* END OF EXPOSED FUNCTIONS *******\\

	function setAllScrollbars(ishide){
		if(document.all){
			var id;
			for(i=0;i<cidlist.length;i++){
			id=cidlist[i];
			if(!document.getElementById(id+'_b').isExt){document.getElementById(id+'_c').style.overflow=(ishide)?"hidden":"auto";}
	}
	}
	}

	function sub_fadein()
	{
	currFcnt+=4;
		if(ie5)
		{
			currFb.style.filter="alpha(opacity="+currFcnt+")";
			currFs.style.filter="alpha(opacity="+(currFcnt/2)+")";
		}
		else
		{
			currFb.style.MozOpacity=currFcnt/100;
			currFs.style.MozOpacity=(currFcnt/2)/100;
		}
		if(currFcnt>=99){
			currFb.style.display=currFs.style.display='block';
			setAllScrollbars(false)
			currFb=null;
			clearInterval(currFID);
	}
	}

	function sub_fadeout()
	{
		currFcnt=currFcnt-4;
		if(ie5)
		{
			currFb.style.filter="alpha(opacity="+currFcnt+")";
			currFs.style.filter="alpha(opacity="+(currFcnt/2)+")";
		}
		else
		{
			currFb.style.MozOpacity=currFcnt/100;
			currFs.style.MozOpacity=(currFcnt/2)/100;
		}
		if(currFcnt<=0)
		{
			currFb.style.display=currFs.style.display='none';
			setAllScrollbars(false)
			currFb=null;
			clearInterval(currFID);
		}
	}

	function preloadBttns(){
		var btns=new Array();
		btns[0]=new Image(); btns[0].src="img/min.gif";
		btns[1]=new Image(); btns[1].src="img/max.gif";
		btns[2]=new Image(); btns[2].src="img/close.gif";
		btns[3]=new Image(); btns[3].src="img/resize.gif";
		}
	preloadBttns();

	function minimize(){
		if(w3c){
			d.getElementById(this.cid+"_b").style.height=(ie5)? '28px':'24px';
			d.getElementById(this.cid+"_s").style.height='28px';
			d.getElementById(this.cid+"_c").style.display='none';
			d.getElementById(this.cid+"_rs").style.display='none';
			ns6bugfix();
	}}

	function restore(){
		if(w3c){
			d.getElementById(this.cid+"_b").style.height=this.h+'px';
			d.getElementById(this.cid+"_s").style.height=(ie5)? this.h+'px':this.h+5+'px';
			d.getElementById(this.cid+"_c").style.display='block';
			d.getElementById(this.cid+"_rs").style.display='block';
			ns6bugfix();
		}}

	function ns6bugfix(){
		if(navigator.userAgent.indexOf("Netscape/6")>0)setTimeout('self.resizeBy(0,1); self.resizeBy(0,-1);', 100);
	}

	function trackmouse(evt){
		mx=(ie5)?event.clientX+d.body.scrollLeft:evt.pageX;
		my=(ie5)?event.clientY+d.body.scrollTop:evt.pageY;
		if(!ns6)movepopup();
		if((currIDb!=null)||(currRS!=null))return false;
	}

	function movepopup(){
		if((currIDb!=null)&&w3c)movePopup(currIDb.cid,mx+xoff,my+yoff);
		if((currRS!=null)&&w3c)resizePopup(currRS.cid,mx+rsxoff,my+rsyoff);
		return false;
	}

	function stopRS(){
		d.getElementById(this.cid+"_extWA").style.display="none";
		currRS=null;
	}

	function startRS(evt){
	var ex=(ie5)?event.clientX+d.body.scrollLeft:evt.pageX;
		var ey=(ie5)?event.clientY+d.body.scrollTop:evt.pageY;
		rsxoff=parseInt(this.style.left)-ex;
		rsyoff=parseInt(this.style.top)-ey;
		currRS=this;
		if(ns6)d.getElementById(this.cid+"_c").style.overflow='hidden';
	return false;
	}

	function changez(v){
		var th=(v!=null)?v:this;
		if(oldac!=null)d.getElementById(oldac.cid+"_t").style.backgroundColor=oldac.inactivecolor;
		if(ns6)d.getElementById(th.cid+"_c").style.overflow='auto';
		oldac=th;
		d.getElementById(th.cid+"_t").style.backgroundColor=th.activecolor;
		d.getElementById(th.cid+"_s").style.zIndex=++zdx;
		th.style.zIndex=++zdx;
		d.getElementById(th.cid+"_rs").style.zIndex=++zdx;
	}

	function stopdrag(){
		currIDb=null;
		document.getElementById(this.cid+"_extWA").style.display="none";
		ns6bugfix();
	}

	function grab_id(evt){
		var ex=(ie5)?event.clientX+d.body.scrollLeft:evt.pageX;
		var ey=(ie5)?event.clientY+d.body.scrollTop:evt.pageY;
		xoff=parseInt(d.getElementById(this.cid+"_b").style.left)-ex;
		yoff=parseInt(d.getElementById(this.cid+"_b").style.top)-ey;
		currIDb=d.getElementById(this.cid+"_b");
		currIDs=d.getElementById(this.cid+"_s");
		d.getElementById(this.cid+"_extWA").style.display="block";
		return false;
	}

	function subBox(x,y,w,h,bgc,id){
		if('undefined' != typeof i)
		{
			// do something with the optional parameter
		}
		var v=d.createElement('div');
		v.setAttribute('id',id);
		v.style.position='absolute';
		v.style.left=x+'px';
		v.style.top=y+'px';
		v.style.width=w+'px';
		v.style.height=h+'px';
		if(bgc!='')v.style.backgroundColor=bgc;
		v.style.visibility='visible';
		v.style.padding='0px';
		return v;
	}

	function get_cookie(Name) {
		var search=Name+"=";
		var returnvalue="";
		if(d.cookie.length>0)
		{
			offset=d.cookie.indexOf(search);
			if(offset!=-1)
			{
				offset+=search.length;
				end=d.cookie.indexOf(";",offset);
				if(end==-1)
				{
					end=d.cookie.length;
				}
				returnvalue=unescape(d.cookie.substring(offset,end));
			}
		}
		return returnvalue;
	}

	function popUp(x,
							 y,
							 w,
							 h,
							 cid,
							 text,
							 bgcolor,
							 textcolor,
							 fontstyleset,
							 title,
							 titlecolor,
							 titletextcolor,
							 bordercolor,
							 scrollcolor,
							 shadowcolor,
							 showonstart,
							 isdrag,
							 isresize,
							 oldOK,
							 isExt,
							 popOnce,
							 minImg,
							 maxImg,
							 clsImg,
							 rsImg)
	{
		
 										
		
		var okPopUp=false;
		// if here before, on create popup and it was a popup only on the 1st time okPopUp=false
		if (popOnce)
		{
			if (get_cookie(cid)=="")
			{
				okPopUp=true;
				d.cookie=cid+"=yes"
			}
		}
		else
		{
			 okPopUp=true;
		}

		if(okPopUp)
		{
			if(w3c)
			{
				cidlist[cidlist.length]=cid;
				w=Math.max(w,100);
				h=Math.max(h,80);
				var rdiv=new subBox(w-((ie5)?12:8),h-((ie5)?12:8),7,7,'',cid+'_rs');
				if(isresize){
					rdiv.innerHTML='<img src="'+rsImg+'" width="7" height="7">';
					rdiv.style.cursor='move';
				}

				rdiv.rsEnable=isresize;
				var tw=(ie5)?w:w+4;
				var th=(ie5)?h:h+6;
				var shadow=new subBox(x+8,y+8,tw,th,shadowcolor,cid+'_s');

				if(ie5)
				{
					shadow.style.filter="alpha(opacity=50)";
				}
				else
				{
					 shadow.style.MozOpacity=.5;
				}

				shadow.style.zIndex=++zdx;
				var outerdiv=new subBox(x,y,w,h,bordercolor,cid+'_b');
				outerdiv.style.display="block";
				outerdiv.style.borderStyle="outset";
				outerdiv.style.borderWidth="2px";
				outerdiv.style.borderColor=bordercolor;
				outerdiv.style.zIndex=++zdx;

				tw=(ie5)?w-8:w-5;
				th=(ie5)?h+4:h-4;

				var titlebar=new subBox(2,2,tw,20,titlecolor,cid+'_t');
				titlebar.style.overflow="hidden";
				titlebar.style.cursor="default";
				var tmp=(isresize)?'<img src="'+minImg+'" width="16" height="16" id="'+cid+'_min"><img src="'+maxImg+'" width="16" height="16"  id="'+cid+'_max">':'';


				closeicon='<img src="'+clsImg+'" width="16" height="16" id="'+cid+'_cls">';
				if (clsImg=='na')closeicon='';
//alert(closeicon)
				titleBarText = '<div id = "'+cid+'_span" style="position:absolute; left:3px; top:1px; font:bold 10pt Arial, Helvetica,sans-serif;text-align: center;color:'+titletextcolor+'; height:18px; overflow:hidden; clip-height:16px;">'+title+'</div><div id="'+cid+'_btt" style="position:absolute; width:48px; height:16px; left:'+(tw-48)+'px; top:2px; text-align:right">'+tmp+closeicon+'</div>';
				titlebar.innerHTML=titleBarText;

				tw=(ie5)?w-7:w-13;

				var content=new subBox(2,24,tw,h-36,bgcolor,cid+'_c');
				content.style.borderColor=bordercolor;
				content.style.borderWidth="2px";
				if(isExt)
				{
					content.innerHTML='<iframe id="'+cid+'_ifrm" src="'+text+'" width="100%" height="100%"></iframe>';
					content.style.overflow="hidden";
				}
				else
				{
					if(ie5)
					{
						content.style.scrollbarBaseColor=scrollcolor;
					}

					content.style.borderStyle="inset";
					content.style.overflow="auto";
					content.style.padding="0px 2px 0px 4px";
					content.innerHTML=text;
					content.style.font=fontstyleset;
					content.style.color=textcolor;
				}

				var extWA=new subBox(2,24,0,0,'',cid+'_extWA');
				extWA.style.display="none";
				extWA.style.width='100%';
				extWA.style.height='100%';
				outerdiv.appendChild(titlebar);
				outerdiv.appendChild(content);
				outerdiv.appendChild(extWA);
				outerdiv.appendChild(rdiv);
				d.body.appendChild(shadow);
				d.body.appendChild(outerdiv);
				d.gEl=d.getElementById;
				if(!showonstart)hidebox(cid);
				var wB=d.gEl(cid+'_b');
				wB.cid=cid;
				wB.isExt=(isExt)?true:false;
				var wT=d.gEl(cid+'_t');
				wT.cid=cid;

				if(isresize)
				{
					var wRS=d.gEl(cid+'_rs');
					wRS.cid=cid;
					var wMIN=d.gEl(cid+'_min');
					wMIN.cid=cid;
					var wMAX=d.gEl(cid+'_max');
					wMAX.h=h;
					wMAX.cid=cid;
					wMIN.onclick=minimize;
					wMAX.onclick=restore;
					wRS.onmousedown=startRS;
					wRS.onmouseup=stopRS;
				}

				var wCLS=d.gEl(cid+'_cls');
				var wEXTWA=d.gEl(cid+'_extWA');
				wB.activecolor=titlecolor;
				wB.inactivecolor=scrollcolor;
				if(oldac!=null)d.gEl(oldac.cid+"_t").style.backgroundColor=oldac.inactivecolor;
				oldac=wB;
				wCLS.onclick=new Function("hidebox('"+cid+"');");
				wB.onmousedown=function(){ changez(this) }
				if(isdrag){
				wT.onmousedown=grab_id;
				wT.onmouseup=stopdrag;
				}
			}
			else
			{
				if(oldOK)
				{
				var ctr=new Date();
				ctr=ctr.getTime();
				var t=(isExt)?text:'';
				var posn=(ns4)? 'screenX='+x+',screenY='+y: 'left='+x+',top='+y;
				var win=window.open(t , "abc"+ctr , "status=no,menubar=no,width="+w+",height="+h+",resizable="+((isresize)?"yes":"no")+",scrollbars=yes,"+posn);
					if(!isExt)
					{
					t='<html><head><title>'+title+'</title></head><body bgcolor="'+bgcolor+'"><font style="font:'+fontstyleset+'; color:'+textcolor+'">'+text+'</font></body></html>';
					win.document.write(t);
					win.document.close();
					}
				}
			}
		}
	}



	//-------------------------------------------------------------------------------------------------------
	//
	//	  popup definition
	//
	//-------------------------------------------------------------------------------------------------------

  			//-------------------------------------------------------------------------------------------------------------------------------------
			//     showPopContoller parameters
			//          1. popup id 																		= msgArray[msg].popid
			//          2. how the message appears 											= msgArray[msg].reveal
			//          3. message 																			= msgArray[msg].msg
			//          4. message title 																= msgArray[msg].title
			//          5. width 																				= msgArray[msg].width
			//          6. height 																			= msgArray[msg].height
			//          7. x axis 																			= msgArray[msg].Xaxis (offset from cursor position)
			//          8. y axis 																			= msgArray[msg].Yaxis (offset from cursor position)
			//          9. milliseconds delay before display 						= msgArray[msg].delaybefore
			//        10. milliseconds delay after display  (currently not used) 	= msgArray[msg].	delayafter
			//-------------------------------------------------------------------------------------------------------------------------------------
		function msgShow(msg)
		{

//alert("msgShow "+msg)
				if (msgArray[msg].delaybefore)
				{
					setTimeout("delayIt()", msgArray[msg].delaybefore*1000);
				}
//alert(msgArray[msg].popid);
//alert(msgArray[msg].reveal);
//alert(msgArray[msg].msg);
//alert(msgArray[msg].title);
//alert(msgArray[msg].width);
//alert(msgArray[msg].height);

				showPopContoller(  	msgArray[msg].popid,
				                   					msgArray[msg].reveal,
				                   					msgArray[msg].msg,
				                   					msgArray[msg].title,
				                   					msgArray[msg].width ,
				                   					msgArray[msg].height ,
				                   					msgArray[msg].Xaxis ,
				                   					msgArray[msg].Yaxis
											)

				if (msgArray[msg].delayafter)
				{
					setTimeout("delayIt()", msgArray[msg].delaybefore*1000);
				}
		}


		function msgHide(msg)
		{

//alert("msgHide "+msg)
				hidePopContoller(  	msgArray[msg].popid,
				                   					msgArray[msg].hide
											)


		}

		function delayIt()
		{
			c="Delayed 3 seconds";
		}



		function popUpMsg()
		{
//alert(" screenControl 8 "+msgCtr)
		// use popUpMsg when it's necessary for the user to close
		new popUp(50 , 300 , 250 , 160 , "popUpMsg" , "" , "black" , "white" , "normal normal 500 .9em/1.4em Helvetica,Arial,Tahoma,MS Sans Serif,Verdana,sans-serif;" , "How to Pay for Membership" , "#004883" , "white" , "lightgrey", "#6DBAF3" , "black" , false , true , true , true , false , false , 'img/min.gif' , 'img/max.gif' , 'img/close.gif', 'img/resize.gif');
		// use popUpBox for mouseovers
		new popUp(150 , 300 , 250 , 10 , "popUpBox" , "<b> Item(s) added to cart</b>" , "black" , "white" , "normal normal 500 .9em/1.4em Helvetica,Arial,Tahoma,MS Sans Serif,Verdana,sans-serif;" , "Quantity Placed in Cart" , "#004883" , "white" , "lightgrey", "#6DBAF3" , "black"  , false , true , false , true , false , false, 'img/min.gif' , 'img/max.gif' ,'na', 'img/resize.gif');
		}


  //


 		var msgArray=new Array();
		// select warning/ mouseover msg

		msgArray["selWarning"]=new popInfo( "popUpMsg",   // msgArray[msg].popid
																		"fade",		 // msgArray[msg].reveal
																		"fade",		 // msgArray[msg].hide
																		"<b>If you are doctor or hospital select this option, otherwise select the reqular subscription. <br/><br/><i> Choose carefully it's  difficult to change!</i></b>",
																		"****Warning****Warning****",       // msgArray[msg].title
																		250,	      // msgArray[msg].width
																		240,      // msgArray[msg].heigh
																		0,     // msgArray[msg].Xaxis
																		0,	      // msgArray[msg].Yaxis
																		0,
																		0);

		msgArray["pwMenuHelp"]=new popInfo( "popUpMsg",   // msgArray[msg].popid
																		"fade",		 // msgArray[msg].reveal
																		"fade",		 // msgArray[msg].hide
																		"<center>Change WPD password or eMail address</center>"	,
																		"****Help for Passwor/eMail Change****",       // msgArray[msg].title
																		250,	      // msgArray[msg].width
																		30,      // msgArray[msg].height
																		15,     // msgArray[msg].Xaxis
																		20,	      // msgArray[msg].Yaxis
																		0,
																		0);

		msgArray["moreMenuHelp"]=new popInfo( "popUpMsg",   // msgArray[msg].popid
																		"fade",		 // msgArray[msg].reveal
																		"fade",		 // msgArray[msg].hide
																		"<center>Select <u>...More WPD</u> under the Product Menu item  to view  \'The Professional Services Guide and Health Professionals Section\'</center>"	,
																		"**** More WPD****",       // msgArray[msg].title
																		250,	      // msgArray[msg].width
																		130,      // msgArray[msg].heigh
																		15,     // msgArray[msg].Xaxis
																		20,	      // msgArray[msg].Yaxis
																		0,
																		0);

		msgArray["adinsertMenuHelp"]=new popInfo( "popUpMsg",   // msgArray[msg].popid
																		"fade",		 // msgArray[msg].reveal
																		"fade",		 // msgArray[msg].hide
																		"<center>Select ...Advertising Insertion Order</center>"	,
																		"**** WPD Ad Insert****",       // msgArray[msg].title
																		250,	      // msgArray[msg].width
																		40,      // msgArray[msg].heigh
																		15,     // msgArray[msg].Xaxis
																		20,	      // msgArray[msg].Yaxis
																		0,
																		0);

		msgArray["adrateMenuHelp"]=new popInfo( "popUpMsg",   // msgArray[msg].popid
																		"fade",		 // msgArray[msg].reveal
																		"fade",		 // msgArray[msg].hide
																		"<center>Select ...Advertising Rates for The 2011 Washington Physicians Directory</center>"	,
																		"**** WPD Book Add Rates****",       // msgArray[msg].title
																		350,	      // msgArray[msg].width
																		90,      // msgArray[msg].heigh
																		15,     // msgArray[msg].Xaxis
																		20,	      // msgArray[msg].Yaxis
																		0,
																		0);

		msgArray["bookMenuHelp"]=new popInfo( "popUpMsg",   // msgArray[msg].popid
																		"fade",		 // msgArray[msg].reveal
																		"fade",		 // msgArray[msg].hide
																		"<center>Click \'2010 WPD\' to purchase the latest copy of The Washington Physicians Directory</center>",
																		"****WPD 2010 Book****",       // msgArray[msg].title
																		350,	      // msgArray[msg].width
																		80,      // msgArray[msg].heigh
																		15,     // msgArray[msg].Xaxis
																		20,	      // msgArray[msg].Yaxis
																		1,
																		0);

		msgArray["ffMenuHelp"]=new popInfo( "popUpMsg",   // msgArray[msg].popid
																		"fade",		 // msgArray[msg].reveal
																		"fade",		 // msgArray[msg].hide
																		"<center><strong>Click for  \'Firefox Lastest version\' <br/><u>Why use:</u><br/> Firefox presents you the latest in open source browsing technology with its popup blocker, tabbed windows, and dependability. Firefox makes upgrading from Internet Explorer easy by importing your saved favorites, settings and other information from Internet Explorer. You do not need to remove Internet Explorer to use Firefox - You can even use both at the same time! With the included Google Toolbar, features like AutoFill and SpellCheck will make browsing more convenient.</strong></center>",

																		"****Webmaster Recommended Browser****",       // msgArray[msg].title
																		300,	      // msgArray[msg].width
																		360,      // msgArray[msg].heigh
																		15,     // msgArray[msg].Xaxis
																		20,	      // msgArray[msg].Yaxis
																		1,
																		0);

		msgArray["lnamePgSrchHelp"]=new popInfo( "popUpMsg",   // msgArray[msg].popid
																		"fade",		 // msgArray[msg].reveal
																		"fade",		 // msgArray[msg].hide
																		"<center>You may enter the complete last name or a partial last name ending with an asterisk <br/>Note: Only alphabetic characters, hyphens , apostrophes, an asterisk  or spaces are permitted</center>",
																		"****Help for Last Name****",       // msgArray[msg].title
																		300,	      // msgArray[msg].width
																		160,      // msgArray[msg].heigh
																		15,     // msgArray[msg].Xaxis
																		20,	      // msgArray[msg].Yaxis
																		0,
																		0);

		msgArray["fnamePgSrchHelp"]=new popInfo( "popUpMsg",   // msgArray[msg].popid
																		"fade",		 // msgArray[msg].reveal
																		"fade",		 // msgArray[msg].hide
																		"<center>You may enter the complete first name or a partial first name ending with an asterisk 	<br/>Note: Only alphabetic characters, hyphens , apostrophes, an asterisk  or spaces are permitted</center>",
																		"****Help for First Name****",       // msgArray[msg].title
																		300,	      // msgArray[msg].width
																		160,      // msgArray[msg].heigh
																		15,     // msgArray[msg].Xaxis
																		20,	      // msgArray[msg].Yaxis
																		0,
																		0);

		msgArray["zipPgSrchHelp"]=new popInfo( "popUpMsg",   // msgArray[msg].popid
																		"fade",		 // msgArray[msg].reveal
																		"fade",		 // msgArray[msg].hide
																		"<center>Please enter a 5 digit zip code and then select a distance/radius from that zip code. <br/>Please note that selecting '0' will only pull listings from the entered zip code</center>",
																		"****Help for Zip Code****",       // msgArray[msg].title
																		350,	      // msgArray[msg].width
																		120,      // msgArray[msg].heigh
																		15,     // msgArray[msg].Xaxis
																		20,	      // msgArray[msg].Yaxis
																		0,
																		0);

		msgArray["PgSrchHelp"]=new popInfo( "popUpMsg",   // msgArray[msg].popid
																		"fade",		 // msgArray[msg].reveal
																		"fade",		 // msgArray[msg].hide
																		"<center><span style=\"margin: 10px 10px;border: medium ridge #D3D3D3;background:white;color:red;  font: normal normal bolder 24px/normal serif;\">Search Options</span><br><br><span style=\"margin: 10px 10px;border: medium ridge #D3D3D3;background:white;color:red;  font: normal normal bolder larger/normal serif;\">Name</span><br>You may search by a complete or partial last name and/or first name. <br>For a partial name use an asterisk * after at least one letter.<br>A name search may also include a specialty and a region or zip code.<br><br><span style=\"margin: 10px 10px;border: medium ridge #D3D3D3;background:white;color:red;  font: normal normal bolder larger/normal serif;\">Specialty and location</span> <br>You must enter either a specialty and a region, in which case there is no distance factor, <br>or a specialty and a zip code.  <br>With a zip code you may select a distance of  \"0\" limiting the search to that zip code only.<br\><br><span  style=\"margin: 10px 10px;border: medium ridge #D3D3D3;background:white;color:red;  font: normal normal bolder larger/normal serif;\">Sort Options:</span><br>Your request may be sorted by Zip Code, Last Name or Group Practice Name.  <br>To view the results by progressively greater distances from a zip code, you must use the Zip Code sort. </center>",
																		"****Help for Search Page****",       // msgArray[msg].title
																		400,	      // msgArray[msg].width
																		520,      // msgArray[msg].height
																		15,     // msgArray[msg].Xaxis
																		999,	      // msgArray[msg].Yaxis
																		0,
																		0);

		msgArray["CutAndPasteHelp"]=new popInfo( "popUpMsg",   // msgArray[msg].popid
																		"fade",		 // msgArray[msg].reveal
																		"fade",		 // msgArray[msg].hide
																		"<center><span style=\"margin: 10px 10px;border: medium ridge #D3D3D3;background:white;color:red;font: normal normal boldest 24px/normal Arial, Helvetica, sans-serif;\">Browser Options</span></center><br><br><span style=\"margin: 10px 10px;border: medium ridge #D3D3D3;background:white;color:red;font: normal normal boldest larger/normal Arial, Helvetica, sans-serif;\">Internet Explorer</span><br><font size=-1><i>The following technique works in both browsers</i></font><br><ul><li>1. Position the cursor before first character to be copied</li><li>2. Click and release the left mouse button</li><li>3. Press the shift key and left click, again, after last character to be copied</li><li>4. Click the right mouse button for the popup menu</li><li>5. Left mouse click on copy <i>(Alternatively use Ctrl-C instead of the mouse click)</i></li><li>6. Finally - paste in your document</li></ul><br><br><span style=\"margin: 10px 10px;border: medium ridge #D3D3D3;background:white;color:red;font: normal normal boldest larger/normal Arial, Helvetica, sans-serif;\">Firefox</span><br><font size=-1><i>If you experience difficulty with positioning your mouse correctly use the above technique</i></font><br><ul><li>1. While holding down the left mouse button highlight the area to be copied</li><li>2. Click the right mouse button for the popup menu</li><li>3. Left mouse click on copy <i>(Alternatively use Ctrl-C instead of the mouse click)</i></li><li>4. Finally - paste in your document</li></ul>",
																		"****Help for Cutting and Pasting****",       // msgArray[msg].title
																		400,	      // msgArray[msg].width
																		570,      // msgArray[msg].height
																		170,     // msgArray[msg].Xaxis
																		50,	      // msgArray[msg].Yaxis
																		0,
																		0);


		// no quantity or incorrect qunatity
		msgArray["zeroQuant"]=new popInfo( "popUpMsg",       				// msgArray[msg].popid
																	"blind",		                  // msgArray[msg].reveal
																	"fade",		 // msgArray[msg].hide
																	"",                           // msgArray[msg].msg
																	"****Quantity Error****",     // msgArray[msg].title
																	250,	                        // msgArray[msg].width
																	80,                          // msgArray[msg].height
																	15,                           // msgArray[msg].Xaxis
																	20,	                          // msgArray[msg].Yaxis
																	0,                            // msgArray[msg].delaybefore
																	0);                           // msgArray[msg].delayafter

		// no quantity or incorrect qunatity
		msgArray["payWarning"]=new popInfo( "popUpMsg",       				// msgArray[msg].popid
																	"blind",		                  // msgArray[msg].reveal
																	"fade",		 // msgArray[msg].hide
																	"<b>Prior to paying for Online Subscription please complete the following steps:<ol> <li>Create a user account</li><li>Login to that account</li><li>Select Pay button again</li><li>Pay for membership</li></ol></b>",                           // msgArray[msg].msg
																	"****FYI How to Pay***",     // msgArray[msg].title
																	250,	                        // msgArray[msg].width
																	80,                          // msgArray[msg].height
																	15,                           // msgArray[msg].Xaxis
																	20,	                          // msgArray[msg].Yaxis
																	0,                            // msgArray[msg].delaybefore
																	0);                           // msgArray[msg].delayafter
		// added to cart
		msgArray["cartAdd"]=new popInfo("popUpMsg",           // msgArray[msg].popid
																"blind",									// msgArray[msg].reveal
																"fade",		 // msgArray[msg].hide
																"",												// msgArray[msg].msg
																"Item Added to Cart",   	// msgArray[msg].title
																250,	   									// msgArray[msg].width
																55,												// msgArray[msg].height
																15, 											// msgArray[msg].Xaxis
																20,											// msgArray[msg].Yaxis
																0,												// msgArray[msg].delaybefore
																5) 												// msgArray[msg].delayafterend debug msg