//GLOBAL VARIABLES:
//var srcElmnt, status, id, tmt_css_NN, tmt_css_IE, RSLite;

//COOKIE FUNCTIONS:
var WM_acceptsCookies=false;if(document.cookie==''){document.cookie='WM_acceptsCookies=yes';if(document.cookie.indexOf('WM_acceptsCookies=yes')!=-1){WM_acceptsCookies=true;}}else{WM_acceptsCookies=true;}
function WM_setCookie(name,value,hours,path,domain,secure){if(WM_acceptsCookies){var not_NN2=(navigator && navigator.appName &&(navigator.appName=='Netscape')&& navigator.appVersion &&(parseInt(navigator.appVersion)==2))?false:true;if(hours && not_NN2){if((typeof(hours)=='string')&& Date.parse(hours)){var numHours=hours;}else if(typeof(hours)=='number'){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':'');}}
function WM_readCookie(name){if(document.cookie==''){return false;}else{var firstChar,lastChar;var theBigCookie=document.cookie;firstChar=theBigCookie.indexOf(name);var NN2Hack=firstChar + name.length;if((firstChar!=-1)&&(theBigCookie.charAt(NN2Hack)=='=')){firstChar +=name.length + 1;lastChar=theBigCookie.indexOf(';',firstChar);if(lastChar==-1)lastChar=theBigCookie.length;return unescape(theBigCookie.substring(firstChar,lastChar));}else{return false;}}}
function WM_killCookie(name,path,domain){var theValue=WM_readCookie(name);if(theValue){document.cookie=name + '=' + theValue + '; expires=Fri, 13-Apr-1970 00:00:00 GMT' +((path)?';path=' + path:'')+((domain)?';domain=' + domain:'');}}

//GENERIC FUNCTIONS:
var winHandle;var xpos;if(((screen.availWidth)/2-400)<0){xpos=0}else xpos=((screen.availWidth)/2-400);var ypos;if(((screen.availHeight)/2-273)<0){ypos=0}else ypos=((screen.availHeight)/2-273);
function myOpenBrWindow(theURL,winName,features){winHandle=window.open(theURL,winName,features);winHandle.opener=self;setTimeout('winHandle.focus();winHandle.moveTo(xpos,ypos)',250);}
function MM_reloadPage(init){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 MM_findObj(n,d){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_swapImgRestore(){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_preloadImages(){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_swapImage(){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_displayStatusMsg(msgStr){status=msgStr;document.MM_returnValue=true;}
function tmt_findObj(n){var x,t;if((n.indexOf("?"))>0&&parent.frames.length){t=n.split("?");x=eval("parent.frames['"+t[1]+"'].document.getElementById('"+t[0]+"')");}else{x=document.getElementById(n)}return x;}
function myClassNew(objName,new_style){var obj=(document.getElementById)? tmt_findObj(objName):MM_findObj(objName);if(obj!=null)with(obj)if(!document.layers){obj.className=new_style;}}
//function isEmail(s,emptyOK){if(emptyOK){var re=new RegExp("^([\d,a-z,\.]{2,16}\x40[\d,a-z,\.]{2,16}\.[a-z]{2,3})?$","i");return re.test(s);}else{var re=new RegExp("^[\d,a-z,\.]{2,16}\x40[\d,a-z,\.]{2,16}\.[a-z]{2,3}$","i");return re.test(s);}}
//function ValidateData(){var CanSubmit=false;CanSubmit=isEmail(document.forms[0].optemail.value,false);if(!isEmail(document.forms[0].optemail.value,false)){myClassNew('optemaillabel','error');document.forms[0].optemail.select();MM_displayStatusMsg('A valid email address is required - please try again');}return CanSubmit;}
function pviiClassNew(obj,new_style){if(obj){obj.className=new_style;}}

//IE ONLY!:
//function alterContent(strHtml, strTarget){if(document.all)eval(strTarget + ".innerHTML=strHtml")}

//tmt_css_NN = "../css/nn.css";tmt_css_IE = "css/ie.css";
//if(document.layers){document.write("<link rel='stylesheet' href='" + tmt_css_NN + "' type='text/css'>");}
//if(document.all){document.write("<link rel='stylesheet' href='" + tmt_css_IE + "' type='text/css'>");}
