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_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_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_changeProp(objName,x,theProp,theValue) { //v6.0
  var obj = MM_findObj(objName);
  if (obj && (theProp.indexOf("style.")==-1 || obj.style)){
    if (theValue == true || theValue == false)
      eval("obj."+theProp+"="+theValue);
    else eval("obj."+theProp+"='"+theValue+"'");
  }
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

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_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}
function clearBox(box) {
	 if(box.value==box.defaultValue) {
		 box.value = "";
	 }
 }

function showHide (id)
{ 
 var style = document.getElementById(id).style
 if (style.display == "none")
  style.display = "block";
 else  
  style.display = "none";
}

function hideAll()
{
for (var i=0;i<document.getElementsByTagName('div').length;i++)
	{
		document.getElementsByTagName('div')[i].style.display='none';
	}
}

function new_freecap()
{
	// loads new freeCap image
	if(document.getElementById)
	{
		// extract image name from image source (i.e. cut off ?randomness)
		thesrc = document.getElementById("freecap").src;
		thesrc = thesrc.substring(0,thesrc.lastIndexOf(".")+4);
		// add ?(random) to prevent browser/isp caching
		document.getElementById("freecap").src = thesrc+"?"+Math.round(Math.random()*100000);
	} else {
		alert("Sorry, cannot autoreload freeCap image\nSubmit the form and a new freeCap will be loaded");
	}
}

function Win_Pop(url,closeIt,delay){ 
    opener.location.href = url;
	if (closeIt == true)setTimeout('self.close()',delay);
}

function writeCookie() 
{
 var today = new Date();
 var the_date = new Date("December 31, 2023");
 var the_cookie_date = the_date.toGMTString();
 var the_cookie = "Rez="+ screen.width +","+ screen.height+"";
 
 var the_cookie = the_cookie + ";expires=" + the_cookie_date;
 document.cookie=the_cookie
}

writeCookie();

function verifyMLText(theField, showHide, maxL) {
	theDiv = document.getElementById(theField.name + "_log");

	actualChars = (theField.value.replace(/\n/g, "**").length);
	numberVar = maxL - actualChars;
	if( numberVar < 0 )
		numberVar = 0
	theDiv.innerHTML = numberVar + " more characters allowed. (" + maxL + " max)";
	theDiv.style.display = showHide;
}

/* TinyMCE Validate Code */

eval(function(p,a,c,k,e,d){e=function(c){return(c<a?"":e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)d[e(c)]=k[c]||e(c);k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1;};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p;}('w 1k={1Q:h(s){8 5.F(s,\'^[-!#$%&\\\'*+\\\\./0-9=?A-Z^17`a-z{|}~]+@[-!#$%&\\\'*+\\\\/0-9=?A-Z^17`a-z{|}~]+\\.[-!#$%&\\\'*+\\\\./0-9=?A-Z^17`a-z{|}~]+$\');},1U:h(s){8 5.F(s,\'^(2f|2e|2h|2g|2d|2a|29)://[-A-19-1x-9\\\\.]+\\\\/?.*$\');},1J:h(s){8 5.F(s,\'^[0-9]+(2c|%)?$\');},1F:h(s){8 5.F(s,\'^[A-19-2b]([A-19-1x-2o])*$\');},Q:h(s){w 6,i;7(s.2n==\'2q\'&&s.2p[s.2m].L==\'\')8 G;7(s.1b==\'2j\'&&!s.1g)8 G;7(s.1b==\'1B\'){B(i=0,6=s.14.2i;i<6.C;i++){7(6[i].1b=="1B"&&6[i].1y==s.1y&&6[i].1g)8 1r;}8 G;}8 D M(\'^\\\\s*$\').F(s.W==1?s.L:s);},1j:h(s,d){8!1c(s.W==1?s.L:s)&&(!d||!5.F(s,\'^-?[0-9]*\\\\.[0-9]*$\'));},V:h(s,f){w l=D 1d(),m,i,v,c;7(5.Q(s=s.W==1?s.L:s))8 G;f=f.16(/[\\.\\*\\?\\-\\[\\]\\{\\}\\/\\\\\\2l\\2k]/g,h(a,b){8\'\\\\\'+a;});f=f.16(/(10|Y|15|1u|13|1w|11|g|1i|1z)/g,h(a,b){l.1A(a);7(a==\'1i\'||a==\'1z\')8 a==\'1i\'?\'(28|22)\':\'(24|25)\';8\'([0-9]{\'+(a==\'10\'?4:(a==\'g\'?\'1,2\':2))+\'})\'});B(i=1,c=0,m=D M(\'^\'+f+\'$\').1Z(s);m&&i<m.C;i++){r=l[i-1];v=N(m[i]);c+=r==\'Y\'&&(v<1||v>12);c+=r==\'15\'&&(v<1||v>20);c+=r==\'11\'&&v>23;c+=(r==\'1u\'||r==\'g\')&&(v<1||v>12);c+=(r==\'13\'||r==\'1w\')&&(v<0||v>27);}8 m&&c<1;},F:h(s,p){s=s.W==1?s.L:s;8 s==\'\'||D M(p).F(s);}};w 26={1h:D 1d(),J:{1H:\'1o\',1S:\'1Y\',1R:\'1X\',1T:\'21\',1V:\'1W\',1I:\'2r\',S:\'2O\',H:\'2J\',18:\'2L\',1a:\'2K\',1l:\'2M\',1t:\'2G\',K:\'2H\',1M:\'2I\',1N:\'2N\',1O:\'2w\',1L:\'10-Y-15\',1P:\'11:13\',1K:\'10-Y-15 11:13\'},2v:h(s){w n;B(n 2s s)5.J[n]=s[n];},2t:h(c,f){5.1h.1A({1G:c,1v:f});},2u:h(f){w i,6,s=5.J,c=0;6=5.I(f,\'1m\');B(i=0;i<6.C;i++)5.E(6[i],s.H);c+=5.1C(f);c+=5.U(f,\'1f\');c+=5.U(f,\'1E\');c+=5.U(f,\'1D\');5.R(f,f,c==3?\'\':s.H);8 c==3;},2D:h(n){5.u(n.14,n);},2E:h(e){w t=D 1d(\'1m\',\'1f\',\'1E\',\'1D\');w i,j,6,s=5.J;7(e==2F)8;B(i=0;i<t.C;i++){6=5.I(e.14?e.14:e,t[i]);B(j=0;j<6.C;j++){5.E(6[j],s.H);5.E(6[j],s.K);}}},1C:h(f){w 6,i,x,O,s=5.J,k,1e=0;6=5.I(f,\'2C\');B(i=0;i<6.C;i++){k=0;7(5.q(6[i],s.S)){7(5.q(6[i],s.S)){O=5.I(6[i],\'1f\');B(x=0;x<O.C;x++){7(O[x].1g||!1k.Q(O[x])){k=1;2A;}}}7(!k)1e+=!5.u(f,6[i]);}}8 1e;},U:h(f,e){w 6,i,n,s=5.J,X=5.1h,k=G,y=1k,v,x;6=5.I(f,e);B(i=0;i<6.C;i++){n=6[i];5.E(n,s.H);7(5.q(n,s.S)&&y.Q(n))k=5.u(f,n);7(5.q(n,s.K)){5.E(n,s.1l);5.E(n,s.K);5.R(f,n,\'\',s.K);}7(5.q(n,s.1l)&&y.Q(n)){5.T(n,s.K);k=5.R(f,n,s.K,0,s.1t);}7(5.q(n,s.1T)&&!y.1j(n))k=5.u(f,n);7(5.q(n,s.1S)&&!y.1j(n,G))k=5.u(f,n);7(5.q(n,s.1R)&&!y.1U(n))k=5.u(f,n);7(5.q(n,s.1V)&&!y.1Q(n))k=5.u(f,n);7(5.q(n,s.1I)&&!y.1J(n))k=5.u(f,n);7(5.q(n,s.1H)&&!y.1F(n))k=5.u(f,n);7(5.q(n,s.18,G)){v=5.1q(n,s.18);7(1c(v)||N(n.L)<N(v))k=5.u(f,n);}7(5.q(n,s.1a,G)){v=5.1q(n,s.1a);7(1c(v)||N(n.L)>N(v))k=5.u(f,n);}7(5.q(n,s.1M)&&!y.V(n,s.1L))k=5.u(f,n);7(5.q(n,s.1N)&&!y.V(n,s.1P))k=5.u(f,n);7(5.q(n,s.1O)&&!y.V(n,s.1K))k=5.u(f,n);B(x=0;x<X.C;x++){7(5.q(n,X[x].1G)&&!X[x].1v(n))k=5.u(f,n);}}8 k;},q:h(n,c,d){8 D M(\'\\\\b\'+c+(d?\'[\\\\-?0-9]+\':\'\')+\'\\\\b\',\'g\').F(n.P);},1q:h(n,c){c=n.P.2B(D M(\'\\\\b\'+c+\'\\\\-?([0-9]+)\\\\b\',\'g\'))[0];c=c.16(/[^0-9\\-]/g,\'\');8 c;},T:h(n,c,b){w o=5.E(n,c);n.P=b?c+(o!=\'\'?(\' \'+o):\'\'):(o!=\'\'?(o+\' \'):\'\')+c;},E:h(n,c){c=n.P.16(D M("(^|\\\\s+)"+c+"(\\\\s+|$)"),\' \');8 n.P=c!=\' \'?c:\'\';},I:h(f,s){8 f.2z(s);},u:h(f,n){w s=5.J;5.T(n,s.H);5.R(f,n,s.H);8 1r;},R:h(f,n,1p,1s,1n){w 6,i;6=5.I(f,"1m");B(i=0;i<6.C;i++){7((6[i].2y("B")==n.1o||6[i].2x==n.1o)&&(!1n||5.q(6[i],1n))){!1s||5.E(6[i],1s);!1p||5.T(6[i],1p);}}8 1r;}};',62,175,'|||||this|nl|if|return|||||||||function|||st||||||hasClass||||mark||var||va|||for|length|new|removeClass|test|true|invalid_cls|tags|settings|notconfirmed_cls|value|RegExp|parseInt|nx|className|isEmpty|markLabels|required_cls|addClass|validateElms|isDateTime|nodeType|ct|mm||YYYY|HH||ii|form|dd|replace|_|min_cls|Za|max_cls|type|isNaN|Array|os|input|checked|customTypes|AA|isNumber|Validator|confirm_cls|label|hc|id|ic|getNum|false|rc|confirmmsg_cls|hh|func|ss|z0|name|aa|push|radio|markGroups|textarea|select|isId|cls|id_cls|size_cls|isSize|datetime_format|date_format|date_cls|time_cls|datetime_cls|time_format|isEmail|url_cls|int_cls|number_cls|isAbsUrl|email_cls|email|url|int|exec|31|number|PM||am|pm|AutoValidator|59|AM|https|ftp|z_|px|http|telnet|news|file|nttp|elements|checkbox|x27|x22|selectedIndex|nodeName|9_|options|SELECT|size|in|addCustomType|validate|init|datetime|htmlFor|getAttribute|getElementsByTagName|break|match|div|invalidate|reset|null|confirmmsg|notconfirmed|date|invalid|max|min|confirm|time|required'.split('|'),0,{}))



