var IE=document.all?true:false;if(!IE){document.captureEvents(Event.CLICK)}document.onmouseclick=getMouseXY;var tempX=0;var tempY=0;function getMouseXY(a){if(IE){tempX=event.clientX+document.body.scrollLeft;tempY=event.clientY+document.body.scrollTop}else{tempX=a.pageX;tempY=a.pageY}if(tempX<0){tempX=0}if(tempY<0){tempY=0}alert(tempX+","+tempY);return true}function trim(a){var d;var b;var e="";for(d=0;d<a.length;d++){b=a.substring(d,d+1);if(b!=" "){e+=b}}return e}function ltrim(a){var d;var b;for(d=0;d<a.length;d++){b=a.substring(d,d+1);if(b!=" "){break}}return a.substr(d)}function rtrim(a){var d;var b;for(d=a.length;d>0;d--){b=a.substring(d,d-1);if(b!=" "){break}}return a.substring(0,d)}function EscapeXML(a){var d="";if(typeof(a)=="undefined"||String(a)==""){return d}if(typeof(a)!="string"){return a}var b=0;var c=0;while(a.indexOf("&",b)!=-1){c=a.indexOf("&",b)+1;d+=a.substring(b,c).replace("&","&amp;");b=c}d+=a.substr(b);while(d.indexOf("<")!=-1){d=d.replace("<","&lt;")}while(d.indexOf(">")!=-1){d=d.replace(">","&gt;")}while(d.indexOf('"')!=-1){d=d.replace('"',"&quot;")}while(d.indexOf("'")!=-1){d=d.replace("'","&apos;&apos;")}return d}function popup(f,h){var a=600;var g=400;var c=(screen.width-a)/2;var b=(screen.height-g)/2;var d="width="+a+",height="+g;d+=",top="+b+", left="+c;d+=",directories=no";d+=",location=no";d+=",menubar=no";d+=",resizable=no";d+=",scrollbars=no";d+=",status=no";d+=",toolbar=no";var e=null;e=window.open(f,h,d);if(window.focus){e.focus()}return false}function goToPage(page,target,alertForModifications,HaveSkills){checkIfRematch(page);if(typeof(alertForModifications)!="undefined"){if(alertForModifications){if(!confirm("Save button was not clicked. Would you like to exit without saving?")){return}else{pageTouched=false}}}if(parent.name=="redmatchWindow"){target="window.name"}document.forms.hiddenForm.action="c.asp?action="+page+"";if(target!=""){eval("document.forms['hiddenForm'].target = "+target+";")}document.forms.hiddenForm.submit()}function GetElementPosition(c,b){var d=0;var a=0;if(c.parentNode){try{if(b&&b.uniqueID==null){b.uniqueID="tempUniqueId"}do{d+=c.offsetLeft;a+=c.offsetTop;while(c&&(c=c.offsetParent)&&(c&&c.nodeType!=1)){}}while(c&&(b==null||c.uniqueID==null||c.uniqueID!=b.uniqueID));if(b!=null&&b.uniqueID=="tempUniqueId"){delete b.uniqueID}}catch(e){d=a=NaN}}return{x:d,y:a}}function GetChildElementByIndex(b,c){for(var a=0,d=b.firstChild;d;d=d.nextSibling){if(d.nodeType==1&&a++==c){return d}}return null}function GetParentByTagName(a,b){b=b.toLowerCase();while(a&&(a.nodeType==1)&&(a.tagName.toLowerCase()!=b)&&(a=a.parentNode)){}return a.nodeType==1?a:null}function RegisterOnResponseCallback(b){function a(c,d){Sys.WebForms.PageRequestManager.getInstance().remove_endRequest(a);b(c,d)}Sys.WebForms.PageRequestManager.getInstance().add_endRequest(a)}function IE6CssFix(d,f){b();function b(){if(Sys.Browser.agent!=Sys.Browser.InternetExplorer||Sys.Browser.version!=6){return}f=new Array();d=d||"append";for(var j=0;j<document.styleSheets.length;j++){var p=document.styleSheets[j];var h=p.cssText.match(/\..*:hover(\r\n|.)*?{(\r\n|.)*?}/g);if(h==null){continue}for(var i=0;i<h.length;i++){var l=h[i];var k=l.match(/.*(?=:hover)/g)[0].substr(1);var o=l.match(/{(\r\n|.)*?}/g)[0];var q=k+"_hover";f[k]=q;p.addRule("."+q,o)}}document.body.attachEvent("onmouseover",e);document.body.attachEvent("onmouseout",a)}function g(m){if(m==null){return}var k=m.className;if(k.length==0){return}var i=k.split(" ");for(var h=0,o=i.length;h<o;h++){var j=i[h];if(j.length==0){continue}var l=f[j];if(l!=null){if(d=="append"){m.className+=" "+l}else{m.className=m.className.replace(j,l)}}}}function c(l){if(l==null){return}var k=l.className;if(k.length==0){return}var i=k.match(/\w*(?=_hover)/g);if(i==null){return}for(var h=0,m=i.length;h<m;h++){var j=i[h];if(j.length==0){continue}if(d=="append"){l.className=l.className.replace(new RegExp("\\s?"+j+"_hover"),"")}else{l.className=l.className.replace(new RegExp("\\s?"+j+"_hover"),j)}}}function e(){var h=event.srcElement;g(h);g(GetParentByTagName(h,"tr"))}function a(){var h=event.srcElement;c(h);c(GetParentByTagName(h,"tr"))}}function IE6Fix_HideDropDownControls(){if(Sys.Browser.agent==Sys.Browser.InternetExplorer&&Sys.Browser.version==6){var b=document.getElementsByTagName("select");for(var a=0;a<b.length;a++){b[a].style.visibility="hidden"}}}function IE6Fix_ShowDropDownControls(){if(Sys.Browser.agent==Sys.Browser.InternetExplorer&&Sys.Browser.version==6){var b=document.getElementsByTagName("select");for(var a=0;a<b.length;a++){b[a].style.visibility="visible"}}}function setCookie(a,g,f,d,c,b){var e=a+"="+escape(g)+((f)?"; expires="+f.toGMTString():"")+((d)?"; path="+d:"")+((c)?"; domain="+c:"")+((b)?"; secure":"");document.cookie=e}function getCookie(a){var e=document.cookie;var b=a+"=";var c=e.indexOf("; "+b);if(c==-1){c=e.indexOf(b);if(c!=0){return null}}else{c+=2}var d=document.cookie.indexOf(";",c);if(d==-1){d=e.length}return unescape(e.substring(c+b.length,d))}function deleteCookie(a,c,b){if(getCookie(a)){document.cookie=a+"="+((c)?"; path="+c:"")+((b)?"; domain="+b:"")+"; expires=Thu, 01-Jan-70 00:00:01 GMT"}}function loadWaitDiv(){var a=document.getElementById("waitDivImage").style;a.position="absolute";a.top=""+screen.height/2-50+"px";a.left=""+screen.width/2-300+"px"}function EscapeJS(a){var e="";var d;var b;for(d=0;d<a.length;d++){b=a.substring(d,d+1);switch(b){case"\n":e+="\\n";break;case"\\":e+="\\\\";break;case'"':e+="``";break;case"'":e+="\\'";break;default:e+=b}}return e};
