function legal_window(url) {
link = window.open(url,"legal",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=yes,resizable=yes,top=(20),left=(20),screenX=(20),screenY=(20),width=560,height=450');
}
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}


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_setTextOfLayer(objName,x,newText) { //v4.01

  if ((obj=MM_findObj(objName))!=null) with (obj)
  
    if (document.layers) {document.write(unescape(newText)); document.close();}
    else innerHTML = unescape(newText);
}
function MM_swapImage() { //v3.0
	
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function MM_openWindow(selObj) { 
	var str = 	selObj.options[selObj.selectedIndex].value;
    if(str.indexOf("redr.aspx?siteid=")!= -1)
	{	
		document.location = selObj.options[selObj.selectedIndex].value;	
	}	
	else
	{
		window.open(selObj.options[selObj.selectedIndex].value);
	} 			
}

function MM_Submit(val) {
				document.theForm2[0].value=val;
				document.theForm2.submit(); 
}
function MM_SubmitCareerForm(val1,val2) {
				
				document.theForm[0].value=val1;
				document.theForm[1].value=val2;
				document.theForm.submit(); 
}
function MM_SubmitPrinterForm(val1,val2)
{
				document.PrinterForm[0].value=val1;
				document.PrinterForm[1].value=val2;
				document.PrinterForm.submit(); 
}
function MM_SubmitCareerResponseForm(val1,val2) {
				if (ValidateCareerForm()==true)
				{
				document.theForm[0].value=val1;
				document.theForm[1].value=val2;
				document.theForm.submit(); 
				}
}


function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function validateUSDate( strValue ) {
  var objRegExp = /^\d{1,2}(\-|\/|\.)\d{1,2}\1\d{4}$/
  if(!objRegExp.test(strValue))
    {
		return false; //doesn't match pattern, bad date
    }
  else{
    var strSeparator = '/'; // strValue.substring(2,3) //find date separator
    var arrayDate = strValue.split(strSeparator); //split date into month, day, year
    //create a lookup for months not equal to Feb.
    var arrayLookup = { '1' : 31,'3' : 31, '4' : 30,'5' : 31,'6' : 30,'7' : 31,'8' : 31,'9' : 30,'01' : 31,'03' : 31, '04' : 30,'05' : 31,'06' : 30,'07' : 31,'08' : 31,'09' : 30,'10' : 31,'11' : 30,'12' : 31}
    var intDay = parseInt(arrayDate[1], 10);

    if(arrayLookup[arrayDate[0]] != null) {
      if(intDay <= arrayLookup[arrayDate[0]] && intDay != 0)
        return true; //found in lookup table, good date
    }
    //check for February
    var intYear = parseInt(arrayDate[2],10);
    var intMonth = parseInt(arrayDate[0],10);
    if( ((intYear % 4 == 0 && intDay <= 29) || (intYear % 4 != 0 && intDay <=28)) && intDay !=0)
      return true; //Feb. had valid number of days
  }
  return false; //any other values, bad date
}

function isPhone(string){
	var theStr = new String(TrimAll(string));
    if (theStr.search(/^([(]([' ']+)?\d+([' ']+)?[)](([-,' '])+)?)?\d+(([-,' ']+\d+)+)?$/) != -1)
        return true;
    else
        return false;
}

function isPhone1(string){
	var theStr = new String(TrimAll(string));
	var i=0
	
	for(i=0;i<theStr.length;i++)
	{	if(theStr.charAt(i) == "-")
			return false;}
	
    if (theStr.search(/^([(]([' ']+)?\d+([' ']+)?[)](([-,' '])+)?)?\d+(([-,' ']+\d+)+)?$/) != -1)
        return true;
    else
        return false;
}

function isValidPhone(str)
{
	var theStr = new String(TrimAll(str));
	if (theStr.length != 12) return false;
	if (theStr.search(/\d{3}-\d{3}-\d{4}/) != -1)
	{return true; }
    else
	{ return false; }
}

function isBlank(val){
	if(val==null){return true;}
	for(var i=0;i<val.length;i++) {
		if ((val.charAt(i)!=' ')&&(val.charAt(i)!="\t")&&(val.charAt(i)!="\n")&&(val.charAt(i)!="\r")){return false;}
		}
	return true;
	}


function LTrimAll(str) {
	if (str==null){return str;}
	for (var i=0; str.charAt(i)==" " || str.charAt(i)=="\n" || str.charAt(i)=="\t"; i++);
	return str.substring(i,str.length);
	}
function RTrimAll(str) {
	if (str==null){return str;}
	for (var i=str.length-1; str.charAt(i)==" " || str.charAt(i)=="\n" || str.charAt(i)=="\t"; i--);
	return str.substring(0,i+1);
	}
function TrimAll(str) {
	return LTrimAll(RTrimAll(str));
	}

	
function isEmailAddr(txtEmail)
{
  var result = false;
  var theStr = new String(TrimAll(txtEmail));

	if (theStr.length == 0) return false;
	
  for (i=0; i<theStr.length; i++)
  {
	ch = theStr.charAt(i);
	if ( (ch >= 'a' && ch <= 'z') || (ch >= 'A' && ch <= 'Z') || (ch >= '0' && ch <= '9') || ch=='_' || ch=='.' || ch=='-' || ch=='@')
	{ 
		//do nothing 
	}
	else
		return false;
  }
	
	var strInValidChars = new String("'\"`~!#$%^&*()+=|\\/:;, ");
	var strChar;
	//test strString consists of Invalid characters
	for (i = 0; i < theStr.length; i++)
	{
		strChar = theStr.charAt(i);
		if (strInValidChars.indexOf(strChar) >= 0)
		{
			strInValidChars.indexOf(strChar);
			return false;
		}
	}

	var index = theStr.indexOf("@");
	if (index > 0)
	{
		var pindex = theStr.indexOf(".",index);
		if ((pindex > index+1) && (theStr.length > pindex+1))
			result = true;
	}
	var Expr =  /^([\w-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([\w-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$/;      
	if (Expr.test(TrimAll(txtEmail)) )
		result = true
	else
		result = false
		
	return result;
}


function Validate() {


  if (isBlank(document.frmMain[0].value))
  {
    alert("Please enter your name.");
    document.frmMain[0].value="";
    document.frmMain[0].focus();
    return (false);
  }

  if (isBlank(document.frmMain[3].value))
  {
    alert("Please enter your phone number.");
    document.frmMain[3].value=""	;	
    document.frmMain[3].focus();
    return (false);
  }

/*  if (!isPhone(document.frmMain.phone.value))
  {
    alert("Please enter a [Phone#] in Valid formate");
    document.frmMain.email.focus();
    return (false);
  }
*/

  if (isBlank(document.frmMain[4].value))
  {
    alert("Please enter your e-mail address.");
    document.frmMain[4].value="";
    document.frmMain[4].focus();
    return (false);
  }

  if (!isEmailAddr(document.frmMain[4].value))
  {
    alert("Please enter a complete e-mail address in the form: yourname@yourdomain.com.");
    document.frmMain[4].focus();
    return (false);
  }
  
  return true;
}

function limitText(limitField, limitNum) 
{
	if (limitField.value.length > limitNum) 
	{
		limitField.value = limitField.value.substring(0, limitNum);
	} 
}
function ValidateSubscription()
{
// if did not enter any thing in email field
if (isBlank(document.theForm.EmailAddress.value))
  {
    alert("Please enter your e-mail address.");
    document.theForm.EmailAddress.focus();
    return (false);
  }
  
//if entered email address is not valid
  if (!isEmailAddr(document.theForm.EmailAddress.value))
  {
    alert("Please enter a complete e-mail address in the form: yourname@yourdomain.com.");
    document.theForm.EmailAddress.focus();
    return (false);
  }
  
	// if every thing goes ok submit this form
	javascript:MM_SubmitCareerForm('5','-1');
}

function ValidateCareerForm()
{
if (isBlank(document.theForm[2].value))
  {
    alert("Please enter your first name.");
    document.theForm[2].focus();
    return (false);
  }
if (isBlank(document.theForm[3].value))
  {
    alert("Please enter your last name.");
    document.theForm[3].focus();
    return (false);
  }
  if (isBlank(document.theForm[9].value))
  {
    alert("Please enter your phone number.");
    document.theForm[9].focus();
    return (false);
  }

  if (isBlank(document.theForm[15].value))
  {
    alert("Please enter your e-mail address.");
    document.theForm[15].focus();
    return (false);
  }
  if (!isEmailAddr(document.theForm[15].value))
  {
    alert("Please enter a complete e-mail address in the form: yourname@yourdomain.com.");
   document.theForm[15].focus();
    return (false);
  }
 if (isBlank(document.theForm[21].value))
  {
    alert("Please attach your resume.");
    document.theForm[21].focus();
    return (false);
  }
  return (true);



}

//************************  
//***** Browser Detection
//************************

function Browser() {
  var ua, s, i;

  this.isIE    = false;  // Internet Explorer
  this.isNS    = false;  // Netscape
  this.isMac   = false;  // Macintosh
	this.isSafari = false;	// Safari
	this.isSafari10 = false;
  this.version = null;
	this.versionMinor = null;
	
  ua = navigator.userAgent;
 	
	s = "Safari";
	if ((i = ua.indexOf(s)) >= 0) {
    this.isSafari = true;
    this.version = parseFloat(ua.substr(i + s.length));
    return;
  }

	s = "MSIE";
	if ((i = ua.indexOf(s)) >= 0) {
    this.isIE = true;
    this.version = parseFloat(ua.substr(i + s.length));
    return;
  }

  s = "Netscape6/";
  if ((i = ua.indexOf(s)) >= 0) {
    this.isNS = true;
    this.version = parseFloat(ua.substr(i + s.length));
    return;
  }
  
  s = "Macintosh";
  if ((i=ua.indexOf(s)) >= 0){
  	this.isMac = true;
	  return;
  }
  
  // Treat any other "Gecko" browser as NS 6.1.
  s = "Gecko";
  if ((i = ua.indexOf(s)) >= 0) {
    this.isNS = true;
    this.version = 6.1;
    return;
  }

}

var browser = new Browser();


function Is ()
{   // convert all characters to lowercase to simplify testing


var agt=navigator.userAgent.toLowerCase()

// *** BROWSER VERSION ***
this.major = parseInt(navigator.appVersion)
this.minor = parseFloat(navigator.appVersion)

this.nav  = ((agt.indexOf('mozilla')!=-1) && ((agt.indexOf('spoofer')==-1)
&& (agt.indexOf('compatible') == -1)))
this.nav2 = (this.nav && (this.major == 2))
this.nav3 = (this.nav && (this.major == 3))
this.nav4 = (this.nav && (this.major == 4))
this.nav4up = this.nav && (this.major >= 4)
this.navonly = (this.nav && (agt.indexOf(";nav") != -1))
this.ie   = (agt.indexOf("msie") != -1)
this.ie3  = (this.ie && (this.major == 2))
this.ie4  = (this.ie && (this.major == 4))
this.ie4up  = this.ie  && (this.major >= 4)

this.opera = (agt.indexOf("opera") != -1)

// *** JAVASCRIPT VERSION CHECK *** 
// Useful to workaround Nav3 bug in which Nav3 
// loads &lt;SCRIPT LANGUAGE="JavaScript1.2"&gt;.
if (this.nav2 || this.ie3) this.js = 1.0
else if (this.nav3 || this.opera) this.js = 1.1
else if (this.nav4 || this.ie4) this.js = 1.2
// NOTE: In the future, update this code when newer versions of JS 
// are released. For now, we try to provide some upward compatibility 
// so that future versions of Nav and IE will show they are at 
// *least* JS 1.2 capable. Always check for JS version compatibility 
// with &gt; or &gt;=.
else if ((this.nav && (this.minor > 4.05)) || (this.ie && (this.major > 4))) 
this.js = 1.2
else this.js = 0.0 // HACK: always check for JS version with &gt; or &gt;=

// *** PLATFORM ***
this.win   = ( (agt.indexOf("win")!=-1) || (agt.indexOf("16bit")!=-1) )
// NOTE: On Opera 3.0, the userAgent string includes "Windows 95/NT4" on all
//        Win32, so you can't distinguish between Win95 and WinNT.
this.win95 = ((agt.indexOf("win95")!=-1) || (agt.indexOf("windows 95")!=-1))

// is this a 16 bit compiled version?
this.win16 = ((agt.indexOf("win16")!=-1)
|| (agt.indexOf("16bit")!=-1) || (agt.indexOf("windows 3.1")!=-1)
|| (agt.indexOf("windows 16-bit")!=-1) )  

this.win31 = (agt.indexOf("windows 3.1")!=-1) || (agt.indexOf("win16")!=-1) ||
(agt.indexOf("windows 16-bit")!=-1)

// NOTE: Reliable detection of Win98 may not be possible. It appears that:
//       - On Nav 4.x and before you'll get plain "Windows" in userAgent.
//       - On Mercury client, the 32-bit version will return "Win98", but
//         the 16-bit version running on Win98 will still return "Win95".
this.win98 = ((agt.indexOf("win98")!=-1)||(agt.indexOf("windows 98")!=-1))
this.winnt = ((agt.indexOf("winnt")!=-1)||(agt.indexOf("windows nt")!=-1))
this.win32 = this.win95 || this.winnt || this.win98 || 
((this.major >= 4) && (navigator.platform == "Win32")) ||
(agt.indexOf("win32")!=-1) || (agt.indexOf("32bit")!=-1)

this.os2   = (agt.indexOf("os/2")!=-1) 
|| (navigator.appVersion.indexOf("OS/2")!=-1)  
|| (agt.indexOf("ibm-webexplorer")!=-1)

this.mac    = (agt.indexOf("mac")!=-1)
this.mac68k = this.mac && ((agt.indexOf("68k")!=-1) || 
(agt.indexOf("68000")!=-1))
this.macppc = this.mac && ((agt.indexOf("ppc")!=-1) || 
(agt.indexOf("powerpc")!=-1))

this.sun   = (agt.indexOf("sunos")!=-1)
this.sun4  = (agt.indexOf("sunos 4")!=-1)
this.sun5  = (agt.indexOf("sunos 5")!=-1)
this.suni86= this.sun && (agt.indexOf("i86")!=-1)
this.irix  = (agt.indexOf("irix") !=-1)    // SGI
this.irix5 = (agt.indexOf("irix 5") !=-1)
this.irix6 = ((agt.indexOf("irix 6") !=-1) || (agt.indexOf("irix6") !=-1))
this.hpux  = (agt.indexOf("hp-ux")!=-1)
this.hpux9 = this.hpux && (agt.indexOf("09.")!=-1)
this.hpux10= this.hpux && (agt.indexOf("10.")!=-1)
this.aix   = (agt.indexOf("aix")  !=-1)      // IBM
this.aix1  = (agt.indexOf("aix 1")  !=-1)    
this.aix2  = (agt.indexOf("aix 2")  !=-1)    
this.aix3  = (agt.indexOf("aix 3")  !=-1)    
this.aix4  = (agt.indexOf("aix 4")  !=-1)    
this.linux = (agt.indexOf("inux")!=-1)
this.sco   = (agt.indexOf("sco")!=-1) || (agt.indexOf("unix_sv")!=-1)
this.unixware = (agt.indexOf("unix_system_v")!=-1) 
this.mpras    = (agt.indexOf("ncr")!=-1) 
this.reliant  = (agt.indexOf("reliantunix")!=-1)
this.dec   = (agt.indexOf("dec")!=-1) || (agt.indexOf("osf1")!=-1) 
|| (agt.indexOf("dec_alpha")!=-1) || (agt.indexOf("alphaserver")!=-1) 
|| (agt.indexOf("ultrix")!=-1) || (agt.indexOf("alphastation")!=-1) 
this.sinix = (agt.indexOf("sinix")!=-1)
this.freebsd = (agt.indexOf("freebsd")!=-1)
this.bsd = (agt.indexOf("bsd")!=-1)
this.unix  = (agt.indexOf("x11")!=-1) || this.sun || this.irix || this.hpux || 
this.sco ||this.unixware || this.mpras || this.reliant || 
this.dec || this.sinix || this.aix || this.linux || this.freebsd

this.vms   = (agt.indexOf("vax")!=-1) || (agt.indexOf("openvms")!=-1)
}






//*************  VALIDATION FOR valid Zipcode entery for USA and Canada
function IsZipcode( sValue )
{
	/*
	var s = new String(sValue);
	 // inappropriate length
	if (s.length != 5 && s.length != 10) return false;
	for (var i=0; i < s.length; i++)
	{
		if ( (s.charAt(i) < '0') || (s.charAt(s) > '9') )
		{
			
			if ( s.charAt(i) != '-' )
			{
				return false;
			}
			else
			{
				alert(s.charAt(i));
				if ( parseInt(s.charAt(i)) > 9 )
				{
					return false;
				}
			}
		}
	}
	return true;
	*/
	
	if (sValue.length <= 4) return false;
	if (sValue.length == 5) return IsNumericOnly(sValue);
	if (sValue.length > 5 && sValue.length <=9) return false;
	if (sValue.length > 10) return false;
	
	if (sValue.length == 10)
	{
		for (var i=0; i < sValue.length; i++)
		{
			if (i==5 && sValue.charAt(5) != '-' ) return false;
			if (i!=5 )
			{
				if ( ! IsNumericOnly(sValue.charAt(i)) ) return false;
				if ( parseInt(sValue.charAt(i),10)<0 && parseInt(sValue.charAt(i),10)>9  )
					return false;
			}
		}
	}
	return true;
}


//********************************************************
//*************  VALIDATION FOR SECONDNATURE SUBMIT STORY
//********************************************************

function IsNumeric(strString)
//  check for valid numeric strings	
{
   var strValidChars = "0123456789.-";
   var strChar;
   var blnResult = true;
	
   if (strString.length == 0) return false;

   //  test strString consists of valid characters listed above
   for (i = 0; i < strString.length && blnResult == true; i++)
      {
      strChar = strString.charAt(i);
      if (strValidChars.indexOf(strChar) == -1)
         {
			blnResult = false;
         }
      }
   return blnResult;
}

function IsNumericOnly(strString)
//  check for valid numeric strings	
{
   var strValidChars = "0123456789";
   var strChar;
   var blnResult = true;

   if (strString.length == 0) return false;

   //  test strString consists of valid characters listed above
   for (i = 0; i < strString.length && blnResult == true; i++)
      {
      strChar = strString.charAt(i);
      if (strValidChars.indexOf(strChar) == -1)
         {
         blnResult = false;
         }
      }
   return blnResult;
}

//*****************************************************************************



//*************  VALIDATION FOR ORDER TRAINING DVD





function setDDText(so,lookFor)
{

  for( i=0, n=so.length, found=false ; i < n ; i++ ) 
    if( so[i].text == lookFor ) { found=true ; break } 
  if( found ) so.selectedIndex = i 
}
function setDD(so,lookFor)
{
  for( i=0, n=so.length, found=false ; i < n ; i++ ) 
    if( so[i].value == lookFor ) { found=true ; break }
  if( found ) so.selectedIndex = i 
}














function ValidateShareYourThoughtForm()
{  		
  if (isBlank(document.theForm[1].value))
  {    
    alert("Please enter your thought.");
    document.theForm[1].focus();
    return (false);
  }  
  if (document.theForm[1].value == 'Please type your idea here')
  {    
    alert("Please enter your thought.");
    document.theForm[1].focus();
    return (false);
  }  
return (true);
}




//*********************************************
//Function to validate multiple email addresses
//*********************************************


function chkValidations(val)
		{			
				var strAddresses = val;
				var arrAddresses;
				if (strAddresses != "")
				{
					if(strAddresses.indexOf(",") > 0)
					{
						var strArr = strAddresses.split(",");
						for(i=0;i<strArr.length;i++)
						{
							if(removeSpaces(strArr[i]) == "")
							{									
								return false;
							}
							if(isValidEmailStrict(removeSpaces(strArr[i])) == false)
							{								
								return false;
							}
						}
					}
					else
					{
						if(isValidEmailStrict(removeSpaces(strAddresses)) == false)
						{							
							return false;
						}
					}	
				}	
			return true;		
		}
		
		function isValidEmailStrict(address)
		{
			if (isValidEmail(address) == false) return false;
			var domain = address.substring(address.indexOf('@') + 1);
			if (domain.indexOf('.') == -1) return false;
			if (domain.indexOf('.') == 0 || domain.indexOf('.') == domain.length - 1) return false;
			return true;
		}
		
		function isValidEmail(address)
		{
			if (address != '' && address.search) {
				if (address.search(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/) != -1) return true;
				else return false;
			}
			   
			// allow empty strings to return true - screen these with either a 'required' test or a 'length' test
			else return true;
		}
		
		function removeSpaces(string)
		{
			var newString = '';
			for (var i = 0; i < string.length; i++)
			{
				if (string.charAt(i) != ' ' && string.charCodeAt(i) != 13 && string.charCodeAt(i) != 10)
				{
					newString += string.charAt(i);
				}	
			}
			return newString;
		}

		function SubmitPoll(pollform)
		{
			var polled = false;
			for (var i=0; i < pollform.elements.length; i++)
			{
			 if ((pollform.elements[i].type && pollform.elements[i].type == 'radio')||(pollform.elements[i].type && pollform.elements[i].type == 'checkbox'))
				{ 
				       
					if (pollform.elements[i].name.indexOf('qr_') > -1)
					{
						if (pollform.elements[i].checked == true)
							polled = true;
					}
				}
			}
			if (polled == true)
				pollform.submit();
			else
				alert('Please select an option first.');
		}
		
function ltrim(argvalue) {

  while (1) {
    if (argvalue.substring(0, 1) != " ")
      break;
    argvalue = argvalue.substring(1, argvalue.length);
  }

  return argvalue;
}
function rtrim(argvalue) {

  while (1) {
    if (argvalue.substring(argvalue.length - 1, argvalue.length) != " ")
      break;
    argvalue = argvalue.substring(0, argvalue.length - 1);
  }

  return argvalue;
}
function trim(argvalue) {
  var tmpstr = ltrim(argvalue);

  return rtrim(tmpstr);

}

function IsValidStr(s)
 {  
         
  for (i=0; i<s.length; i++)
	{
	  	       
		if ((s.indexOf("/") != -1) || (s.indexOf("`") != -1)||(s.indexOf("~") != -1)||(s.indexOf("!") != -1) ||(s.indexOf("@") != -1) ||(s.indexOf("$") != -1) ||(s.indexOf("%") != -1)||(s.indexOf("^") != -1) ||(s.indexOf("&") != -1) || (s.indexOf("*") != -1) ||(s.indexOf("(") != -1)||(s.indexOf(")") != -1)||(s.indexOf("_") != -1) ||(s.indexOf("+") != -1) ||(s.indexOf("|") != -1) ||(s.indexOf("{") != -1) ||(s.indexOf("}") != -1) ||(s.indexOf("[") != -1) ||(s.indexOf("]") != -1)||(s.indexOf(":") != -1) ||(s.indexOf(";") != -1) ||(s.indexOf("<") != -1) ||(s.indexOf(">") != -1) ||(s.indexOf("?") != -1) ||(s.indexOf("=") != -1) ||(s.charCodeAt(i) == 34) ||(s.charCodeAt(i) == 92))
		{ 
	 	  return false; 
		}
		 return true; 
	}  
	  
}
function IsValidZipCode(s)
{
for (i=0; i<s.length; i++)
{
    
	if ( !( (s.charAt(i) >= 'a' && s.charAt(i) <= 'z') || (s.charAt(i) >= 'A' && s.charAt(i) <= 'Z') || (s.charAt(i) >= '0' && s.charAt(i) <= '9')||(s.charCodeAt(i) == 32) ) )
	 return false;
	
}
return true;
}
function readCookie(name)
{
  var ca = document.cookie.split(';');
  var nameEQ = name + "=";
  for(var i=0; i < ca.length; i++) {
    var c = ca[i];
    while (c.charAt(0)==' ') c = c.substring(1, c.length); //delete spaces
    if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length, c.length);
    }
  return null;
}

function clearTextBox(objTxtBox) 
{
	if (objTxtBox.value == objTxtBox.defaultValue)
	{
		objTxtBox.value = "";
	}
}

function MM_nbGroup(event, grpName) { //v6.0
var i,img,nbArr,args=MM_nbGroup.arguments;
if (event == "init" && args.length > 2) {
if ((img = MM_findObj(args[2])) != null && !img.MM_init) {
img.MM_init = true; img.MM_up = args[3]; img.MM_dn = img.src;
if ((nbArr = document[grpName]) == null) nbArr = document[grpName] = new Array();
nbArr[nbArr.length] = img;
for (i=4; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
if (!img.MM_up) img.MM_up = img.src;
img.src = img.MM_dn = args[i+1];
nbArr[nbArr.length] = img;
} }
} else if (event == "over") {
document.MM_nbOver = nbArr = new Array();
for (i=1; i < args.length-1; i+=3) if ((img = MM_findObj(args[i])) != null) {
if (!img.MM_up) img.MM_up = img.src;
img.src = (img.MM_dn && args[i+2]) ? args[i+2] : ((args[i+1])? args[i+1] : img.MM_up);
nbArr[nbArr.length] = img;
}
} else if (event == "out" ) {
for (i=0; i < document.MM_nbOver.length; i++) {
img = document.MM_nbOver[i]; img.src = (img.MM_dn) ? img.MM_dn : img.MM_up; }
} else if (event == "down") {
nbArr = document[grpName];
if (nbArr)
for (i=0; i < nbArr.length; i++) { img=nbArr[i]; img.src = img.MM_up; img.MM_dn = 0; }
document[grpName] = nbArr = new Array();
for (i=2; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
if (!img.MM_up) img.MM_up = img.src;
img.src = img.MM_dn = (args[i+1])? args[i+1] : img.MM_up;
nbArr[nbArr.length] = img;
} }
}

function MM_SubmitOptInForm()
{
 
 if (document.frmOptIn.txtEmail.value == 'Enter e-mail address') 
  document.frmOptIn.txtEmail.value ="";
  
 document.frmOptIn.submit(); 
 
}

function correctPNG() 
{
if (browser.isIE&&browser.version>=5.5) {
	for(var i=0; i<document.images.length; i++) {
		var img = document.images[i];
		var imgName = img.src.toUpperCase();
		if (imgName.substring(imgName.length-3, imgName.length) == "PNG") {
				var imgID = (img.id) ? "id='" + img.id + "' name='" + img.id + "' " : "";
				var imgClass = (img.className) ? "class='" + img.className + "' " : "";
				var imgTitle = (img.title) ? "title=\"" + img.title + "\" " : "title=\"" + img.alt + "\" ";
				var imgStyle = "display:inline-block" + img.style.cssText ;
				//var imgSizingMethod 
				if (img.align == "left") imgStyle = "float:left;" + imgStyle;
				if (img.align == "right") imgStyle = "float:right;" + imgStyle;
				if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle;	
				var strNewHTML = "<span " + imgID + imgClass + imgTitle
				+ " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";"
					+ "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
				+ "(src=\'" + img.src + "\', sizingMethod='image');\"></span>" ;
				//alert(strNewHTML);
				img.outerHTML = strNewHTML;
				i = i-1;
			}
		}
	}
}
function isValidPath(data)
{
	var b;
	var c;
	var d;
	if (is.mac)
	{
		b = (data.charAt(0) == '/');
		d = data.lastIndexOf('/')
	}
	else
	{
		b = (data.indexOf(':\\')>=0 || data.indexOf('\\\\')==0);
		d = data.lastIndexOf('\\')
	}
	i = data.indexOf('.',d);
	if (i>0 && i!= data.length-1) c=true; else c=false;

	return (b && c);
}

