var yapplicationId="recruit";
var isChrome;
if(typeof isChrome=="undefined"){
var ua=navigator.userAgent;
isChrome=ua.indexOf("Chrome")>-1;
}
var isVista;
if(typeof isVista=="undefined"){
isVista=false;
var ua=navigator.userAgent;
var ieOffset=ua.indexOf("MSIE ");
var ieLevel=(ieOffset>-1)?parseFloat(ua.substr(ieOffset+5)):0;
if(ieLevel){
var ntOffset=ua.indexOf("Windows NT ");
var ntLevel=(ntOffset>-1)?parseFloat(ua.substr(ntOffset+11)):0;
isVista=(ntLevel>=6);
}
}
var isFirefox=false;
if(typeof netscape!="undefined"&&typeof netscape.security!="undefined"&&typeof netscape.security.PrivilegeManager!="undefined"&&typeof netscape.security.PrivilegeManager.enablePrivilege!="undefined"){
isFirefox=true;
}
function firefoxPermissionDeniedMessage(_1){
return "Permission denied to: "+_1+"\n"+"If you were not asked for permission and still want to perform this function,\n"+"then type 'about:config' in the address bar, press Enter, find the property named\n"+"'signed.applets.codebase_principal_support'\n"+"and change its value to true.\n"+"Then try this function again.";
}
function yget(id){
return document.getElementById(id);
}
function ypurge(d,_4){
var a=d.attributes,i,l,n;
if(a){
l=a.length;
for(i=0;i<l;i+=1){
n=a[i].name;
if(typeof d[n]==="function"){
d[n]=null;
}
}
}
a=d.childNodes;
if(a&&_4){
l=a.length;
for(i=0;i<l;i+=1){
ypurge(d.childNodes[i],_4);
}
}
}
function strstartswith(_9){
if(this.substr(0,_9.length)==_9){
return true;
}
return false;
}
function strendswith(_a){
var _b=this.length;
var _c=_a.length;
if(_b<_c){
return false;
}
if(this.substr(_b-_c)==_a){
return true;
}
return false;
}
function strstrip(){
return this.replace(/\s/g,"");
}
function strltrim(){
return this.replace(/^\s+/,"");
}
function strrtrim(){
return this.replace(/\s+$/,"");
}
function strtrim(){
return this.replace(/^\s+/,"").replace(/\s+$/,"");
}
function encodeXml(){
return this.replace(/&/g,"&amp;").replace(/</g,"&lt;");
}
function decodeXml(){
return this.replace(/&amp;/g,"&").replace(/&lt;/g,"<");
}
String.prototype.startsWith=strstartswith;
String.prototype.endsWith=strendswith;
String.prototype.strip=strstrip;
String.prototype.ltrim=strltrim;
String.prototype.rtrim=strrtrim;
String.prototype.trim=strtrim;
String.prototype.encodeXml=encodeXml;
String.prototype.decodeXml=decodeXml;
var appWindow;
var COL_SEP="\x04";
var ROW_SEP="\x05";
var COL_SEP_2="\x02";
var ROW_SEP_2="\x03";
var RAW_DATA=1;
var GET_TEXT=2;
var keys=new Array();
keys["f112"]="f1";
keys["f113"]="f2";
keys["f114"]="f3";
keys["f115"]="f4";
keys["f116"]="f5";
keys["f117"]="f6";
keys["f118"]="f7";
keys["f119"]="f8";
keys["f120"]="f9";
keys["f121"]="f10";
keys["f122"]="f11";
keys["f123"]="f12";
function ycheckHistory(_d){
return true;
if(history.length>1){
if(isChrome){
return true;
}
if(_d){
return false;
}
document.write("");
document.close();
alert("For security reasons, back button is not allowed. This window will close.");
window.close();
return false;
}
return true;
}
var YEvent={list:null,unloadList:[],init:function(){
if(YEvent.list==null){
YEvent.list=[];
YEvent.add(window,"unload",YEvent.cleanUp);
}
},add:function(_e,_f,fn,_11){
YEvent.init();
if(typeof _e=="string"){
_e=document.getElementById(_e);
}
if(_e==null||fn==null){
return false;
}
if(_e==window&&_f=="unload"&&YEvent.list.length>0){
YEvent.unloadList.push(fn);
return true;
}
YEvent.removeEvent(_e,_f,fn,_11);
if(_e.addEventListener){
if(!_11){
_11=false;
}
_e.addEventListener(_f,fn,_11);
YEvent.list.push({"obj":_e,"type":_f,"fn":fn,"useCapture":_11});
return true;
}
if(_e.attachEvent&&_e.attachEvent("on"+_f,fn)){
YEvent.list.push({"obj":_e,"type":_f,"fn":fn,"useCapture":false});
return true;
}
return false;
},addBound:function(obj,_13){
YEvent.init();
if(typeof obj=="string"){
obj=document.getElementById(obj);
}
YEvent.list.push({"obj":obj,"type":_13,"fn":null});
return true;
},removeEvent:function(obj,_15,fn,_17){
try{
if(obj.removeEventListener){
obj.removeEventListener(_15,fn,_17);
}else{
if(obj.detachEvent){
obj.detachEvent("on"+_15,fn);
}
}
}
catch(e){
}
},cleanUp:function(){
if(typeof windowOnBeforeUnload=="function"){
YEvent.removeEvent(window,"beforeunload",windowOnBeforeUnload,false);
}
while(YEvent.unloadList.length>0){
var fn=YEvent.unloadList.pop();
fn();
}
for(var i=0,n=YEvent.list.length;i<n;i++){
var e=YEvent.list[i];
if(e.fn==null){
e.obj[e.type]=null;
continue;
}
YEvent.removeEvent(e.obj,e.type,e.fn,e.useCapture);
}
YEvent.list=null;
YEvent.unloadList=null;
}};
function trapKeys(evt){
evt=(evt)?evt:((event)?event:null);
if(evt){
var key=keys["f"+evt.keyCode];
if(key){
if(key=="f8"){
dumpSource();
}
if(evt.preventDefault){
evt.preventDefault();
evt.stopPropagation();
}else{
evt.keyCode=0;
evt.returnValue=false;
evt.cancelBubble=true;
}
if(typeof processKey!="undefined"){
return processKey(key,evt);
}
return false;
}
}
}
function trapEnterKey(evt){
evt=(evt)?evt:((event)?event:null);
if(evt){
if(evt.keyCode==13){
var _1f=(evt.target)?evt.target:((evt.srcElement)?evt.srcElement:null);
if(_1f){
_1f=(_1f.nodeType==1||_1f.nodeType)?_1f:_1f.parentNode;
}
if(typeof allowEnterKey!="undefined"&&allowEnterKey(_1f)){
return true;
}
var _20=document.getElementById("okButton");
if(_20&&(_20.style.display=="none"||_20.disabled)){
return true;
}
if(typeof okAction=="function"){
okAction();
return false;
}
return true;
}
}
}
function adjustIframeSize(_21,_22){
var _23=document.getElementById(_21);
if(_23){
if(_23.contentDocument&&_23.contentDocument.body.offsetHeight){
if(_22){
_23.contentDocument.open();
_23.contentDocument.write(_22);
}
_23.height=_23.contentDocument.body.offsetHeight;
}else{
if(_23.Document&&_23.Document.body.scrollHeight){
if(_22){
_23.Document.open();
_23.Document.write(_22);
}
_23.height=_23.Document.body.scrollHeight;
}
}
}
}
function setIframeSize(_24,h,w){
var _27=document.getElementById(_24);
if(_27){
_27.height=h;
_27.width=w;
}
}
function getIframeWindow(_28){
var _29=document.getElementById(_28);
if(_29){
if(_29.contentDocument&&_29.contentDocument.defaultView){
return _29.contentDocument.defaultView;
}else{
if(_29.Document&&_29.Document.parentWindow){
return _29.Document.parentWindow;
}
}
return null;
}
}
function yshowRow(_2a){
if(typeof _2a=="string"){
_2a=document.getElementById(_2a);
}
if(!_2a){
return;
}
if(document.all){
_2a.style.display="block";
}else{
_2a.style.display="table-row";
}
}
function yhideRow(_2b){
if(typeof _2b=="string"){
_2b=document.getElementById(_2b);
}
if(!_2b){
return;
}
_2b.style.display="none";
}
function encodeHTML(str){
var div=document.createElement("div");
var _2e=document.createTextNode(str);
div.appendChild(_2e);
return div.innerHTML;
}
function setUTF8(_2f){
var _30=-1;
_2f=_2f.replace(/<meta /gi,"<meta ");
while((_30=_2f.indexOf("<meta ",_30+1))>-1){
var end=_2f.indexOf(">",_30+6);
if(end==-1){
continue;
}
var tag=_2f.substring(_30,end+1);
if(tag.search(/http-equiv/gi)==-1){
continue;
}
if(tag.search(/Content-Type/gi)==-1){
continue;
}
_2f=_2f.substring(0,_30)+"<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">"+_2f.substr(end+1);
return _2f;
}
_30=_2f.search(/<head>/i);
if(_30>-1){
_2f=_2f.substring(0,_30+6)+"<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">"+_2f.substr(_30+6);
return _2f;
}
return _2f;
}
function ygetHtmlSnippet(_33){
var _34=_33.search(/<body>/i);
if(_34<0){
return _33;
}
var end=_33.search(/<\/body>/i);
if(end<0){
return _33;
}
return _33.substring(_34+6,end).trim();
}
function ygetNameFromPath(_36){
if(typeof _36=="undefined"||_36==null||_36==""){
return "";
}
var _37=_36.lastIndexOf("\\");
if(_37==-1){
_37=_36.lastIndexOf("/");
}
if(_37==-1){
_37=0;
}else{
_37+=1;
}
return _36.substr(_37);
}
function yclose(win){
if(win&&!win.closed){
win.close();
}
}
function yopen(_39,_3a,_3b,_3c){
var _3d=_39.substring(0,_39.indexOf("."));
var dim=homeWindow.getUserProperty(_3d+"Dim",_3c).split(",");
dim.x=parseInt(dim[0]);
dim.y=parseInt(dim[1]);
dim.w=parseInt(dim[2]);
dim.h=parseInt(dim[3]);
if(_3b){
_3b+=",";
}
_3b+="left="+dim.x+",top="+dim.y+",width="+dim.w+",height="+dim.h;
if((dim.x<0||dim.y<0)&&isFirefox){
try{
netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserWrite");
}
catch(e){
alert(firefoxPermissionDeniedMessage("set negative window position"));
}
}
var win=window.open(_39,_3a,_3b);
if((dim.x<0||dim.y<0)&&!isFirefox){
win.moveTo(dim.x,dim.y);
}
homeWindow.addWindow(win);
return win;
}
var createXMLHttpRequest=function(){
if(typeof XMLHttpRequest!="undefined"){
return function(){
try{
return new XMLHttpRequest();
}
catch(e){
alert("XMLHttpRequest error: "+e.message);
return null;
}
};
}
if(typeof ActiveXObject!="undefined"){
return function(){
return new ActiveXObject("Msxml2.XMLHTTP");
};
}
alert("XMLHttpRequest not supported");
return function(){
return null;
};
}();
function AjaxDoc(_40){
this.found=false;
this.html="";
this.path=_40;
}
AjaxDoc.prototype.get=function(){
var _41=createXMLHttpRequest();
_41.open("POST",this.path,false);
try{
_41.send("1");
if(_41.status==404){
this.found=false;
this.html="<HTML>"+this.path+" was not found"+"</HTML>";
}else{
this.found=true;
this.html=_41.responseText;
}
}
catch(error){
alert("AjaxDoc error: "+error.message);
}
return this.html;
};
AjaxDoc.get=function(_42){
var e=new AjaxDoc(_42);
e.get();
return e;
};
function AjaxTran(_44,_45,_46,_47){
this.xml=null;
var _48=_44+COL_SEP+_46+COL_SEP+((_45)?_45.join(COL_SEP):"");
if(_47){
_47.push(["98"]);
var _49=[];
for(var i=0,n=_47.length;i<n;i++){
_49.push(_47[i].join(COL_SEP));
}
_48+=ROW_SEP+_49.join(ROW_SEP);
}
var _4c=createXMLHttpRequest();
_4c.open("POST",yapplicationId,false);
_4c.setRequestHeader("Content-Type","text/plain; charset=UTF-8");
try{
if(homeWindow.debugMode){
homeWindow.debugWindow.log(_48);
}
_4c.send(_48);
if(window&&_4c.status==408){
if(typeof windowIsUnloading=="undefined"){
alert("Your session has timed out, possibly due to inactivity. Please log on again.");
}
window.close();
this.data="99"+COL_SEP+"Session timed out";
return;
}
if(window&&_4c.status==503){
if(typeof windowIsUnloading=="undefined"){
alert("Database connection not ready, please try again later");
}
window.close();
this.data="99"+COL_SEP+"Database connection not ready";
return;
}
this.data="";
this.data=_4c.responseText;
if(homeWindow.debugMode){
homeWindow.debugWindow.log(this.data.substring(0,100));
}
if(!_46&&this.data==""){
if(typeof windowIsUnloading=="undefined"){
alert("Empty response, possible network failure");
}
window.close();
this.data="99"+COL_SEP+"Empty response, possible network failure";
return;
}
return;
}
catch(e){
if(typeof windowIsUnloading=="undefined"){
alert("Server is not ready, please try again later \n("+e.message+" : "+_44+" : "+_45+")");
}
if(window){
window.close();
}
}
}
function AjaxTranAsync(_4d,_4e,_4f,_50,_51){
this.xml=null;
var _52=_4d+COL_SEP+_4f+COL_SEP+((_4e)?_4e.join(COL_SEP):"");
if(_51){
_51.push(["98"]);
var _53=[];
for(var i=0,n=_51.length;i<n;i++){
_53.push(_51[i].join(COL_SEP));
}
_52+=ROW_SEP+_53.join(ROW_SEP);
}
var _56=createXMLHttpRequest();
_56.open("POST",yapplicationId,true);
_56.setRequestHeader("Content-Type","text/plain; charset=UTF-8");
_56.onreadystatechange=function(){
if(_56.readyState==4){
try{
if(homeWindow.debugMode){
homeWindow.debugWindow.log(_52);
}
this.data="";
if(window&&_56.status==408){
this.data="99"+COL_SEP+"Session timed out";
}else{
if(window&&_56.status==503){
this.data="99"+COL_SEP+"Database connection not ready";
}else{
this.data=_56.responseText;
}
}
if(homeWindow.debugMode){
homeWindow.debugWindow.log(this.data.substring(0,100));
}
if(typeof _50=="function"){
_50(this.data);
}
}
catch(e){
}
}
};
_56.send(_52);
}
AjaxTran.prototype.getText=function(){
var _57=this.data;
if(!_57){
return "";
}
return _57;
};
AjaxTran.prototype.getRecords=function(){
var _58=this.getText();
return AjaxTran.getRecords(_58);
};
AjaxTran.getRecords=function(_59){
if(_59.length<2){
return new Array();
}
if(_59.substring(0,2)=="99"){
if(_59.length==2){
alert("Transaction timed out");
}
return new Array();
}
var _5a=_59.split(ROW_SEP);
for(var i=0,n=_5a.length;i<n;i++){
_5a[i]=_5a[i].split(COL_SEP);
}
return _5a;
};
AjaxTran.prototype.getFields=function(){
var _5d=this.getText();
return AjaxTran.getFields(_5d);
};
AjaxTran.getFields=function(_5e){
return _5e.length>0?_5e.split(COL_SEP):null;
};
AjaxTran.prototype.getXml=function(){
return this.xml;
};
function YLogon(){
this._logon_pgm="";
this._msg;
}
YLogon.prototype.setLogonPgm=function(p){
this._logon_pgm=p;
};
YLogon.prototype.getLogonPgm=function(){
return this._logon_pgm;
};
YLogon.prototype.setMsg=function(p){
this._msg=p;
};
YLogon.prototype.getMsg=function(){
return this._msg;
};
YLogon.prototype.logon=function(_61,_62,_63){
var _64=new Array(_61,_62,_63);
var _65="0";
try{
var _66=new AjaxTran("logon",_64,_65);
var _67=_66.getFields();
if(_67[0]=="01"){
var s=1;
this.setLogonPgm(_67[s++]);
return true;
}
this.setMsg(_67[1]);
}
catch(e){
this.setMsg("Server is unavailable");
}
return false;
};
YLogon.prototype.logonWithOpenId=function(_69){
var _6a=new Array(_69);
var _6b="0";
try{
var _6c=new AjaxTran("logonWithOpenId",_6a,_6b);
var _6d=_6c.getFields();
if(_6d[0]=="01"){
var s=1;
this.setLogonPgm(_6d[s++]);
return true;
}
this.setMsg(_6d[1]);
}
catch(e){
this.setMsg("Server is unavailable");
}
return false;
};
YLogon.logoff=function(){
var _6f=[];
var _70="0";
try{
var _71=new AjaxTran("logoff",_6f,_70);
var _72=_71.getFields();
if(_72[0]=="01"){
return true;
}
}
catch(e){
}
return false;
};
function XmlDoc(_73){
if(_73){
this.xmlString=_73;
}else{
this.xmlString="<root></root>";
}
}
XmlDoc.prototype.getValue=function(_74,_75){
_74=_74.toLowerCase();
if(typeof _75=="undefined"){
_75="";
}
var _76=this.xmlString;
var _77="<"+_74+">";
var _78="</"+_74+">";
var _79=_76.indexOf(_77);
if(_79==-1){
return _75;
}
var end=_76.indexOf(_78);
if(end==-1){
return _75;
}
if(_79==end){
return _75;
}
return _76.substring(_79+_77.length,end).decodeXml();
};
XmlDoc.prototype.getBoolean=function(_7b){
var str=this.getValue(_7b);
if(str==""||str=="0"){
return false;
}
return true;
};
XmlDoc.prototype.getDate=function(_7d){
var str=this.getValue(_7d);
if(str==""){
return null;
}
return parseXmlDate(str);
};
XmlDoc.prototype.getInt=function(_7f){
var str=this.getValue(_7f);
if(str==""){
return 0;
}
return parseInt(str,10);
};
XmlDoc.prototype.getNumber=function(_81){
var str=this.getValue(_81);
if(str==""){
return null;
}
return parseUserNumber(str);
};
XmlDoc.prototype.setValue=function(_83,_84){
if(typeof _84=="string"){
_84=_84.encodeXml();
}else{
if(typeof _84=="number"){
_84=""+_84;
}else{
if(typeof _84=="object"){
if(_84 instanceof Date){
_84=formatXmlDate(_84);
}
}
}
}
if(_84==null){
_84="";
}
_83=_83.toLowerCase();
var _85=this.xmlString;
var _86="<"+_83+">";
var _87="</"+_83+">";
var _88=_85.indexOf(_86);
var end=_85.indexOf(_87);
if(_88>-1&&end>-1){
_85=_85.substring(0,_88+_86.length)+_84+_85.substring(end);
}else{
if(_88>-1||end>-1){
return;
}
var _8a="</root>";
end=_85.indexOf(_8a);
if(end==-1){
return;
}
_85=_85.substring(0,end)+_86+_84+_87+_8a;
}
this.xmlString=_85;
};
XmlDoc.prototype.toString=function(){
return this.xmlString;
};
XmlDoc.transform=function(xml,xsl){
xmlDoc=new ActiveXObject("Msxml2.DOMDocument.3.0");
xmlDoc.async=false;
xslDoc=new ActiveXObject("Msxml2.DOMDocument.3.0");
xslDoc.async=false;
xmlDoc.loadXML(xml);
var _8d="";
if(typeof xsl=="string"&&xsl!=""){
xslDoc.load(xsl);
_8d=xmlDoc.transformNode(xslDoc);
}else{
_8d="No xsl document found";
}
return _8d;
};
function ycopyStyleProperty(_8e,_8f,_90,_91){
var p=ygetStyleProperty(_8e,_90,_91);
if(p){
_8f.style[_90]=p;
}
}
function ygetStyleProperty(_93,_94,_95){
if(!_95){
_95=_94;
}
if(_93.currentStyle){
if(_93.style[_94]){
return _93.style[_94];
}
return _93.currentStyle[_94];
}else{
if(window.getComputedStyle){
if(_93.style[_95]){
return _93.style[_95];
}
var _96=document.defaultView.getComputedStyle(_93,null);
if(_96){
return _96.getPropertyValue(_95);
}
}
}
return null;
}
function ygetTarget(evt,tag,_99,_9a){
evt=(evt)?evt:event;
var tgt=(evt.target)?evt.target:((evt.srcElement)?evt.srcElement:null);
while(true){
if(tgt&&(tgt.tagName==tag||tgt.tagName==_99||tgt.tagName==_9a)&&(tgt.nodeType==1||tgt.nodeType==9)){
return tgt;
}else{
if(tgt.parentNode){
tgt=tgt.parentNode;
}else{
return null;
}
}
}
return elem;
}
function ygetTargetId(evt){
var _9d=(evt.target)?evt.target:((evt.srcElement)?evt.srcElement:null);
if(_9d){
_9d=(_9d.nodeType==1||_9d.nodeType==9)?_9d:_9d.parentNode;
}
if(_9d){
return _9d.id;
}
return "";
}
function getClosure(_9e,_9f,_a0,_a1){
return function(){
_9e(_9f,_a0,_a1);
};
}
function getClosureEvent(_a2,_a3,_a4,_a5){
return function(evt){
_a2(evt,_a3,_a4,_a5);
};
}
function getPosition(_a7){
var SL=0,ST=0;
var _aa=_a7;
while(_aa!=null){
var tag=_aa.tagName;
if(tag=="BODY"||tag=="DIV"){
if(_aa.scrollLeft){
SL+=_aa.scrollLeft;
}
if(_aa.scrollTop){
ST+=_aa.scrollTop;
}
}
if(tag=="BODY"){
break;
}
_aa=_aa.parentNode;
}
var r={x:_a7.offsetLeft-SL,y:_a7.offsetTop-ST,w:_a7.offsetWidth,h:_a7.offsetHeight};
while((_a7=_a7.offsetParent)!=null){
r.x+=_a7.offsetLeft;
r.y+=_a7.offsetTop;
}
return r;
}
function getPositionOld(_ad,_ae){
var SL=0,ST=0;
var _b1=/^div$/i.test(_ad.tagName);
if(_b1&&_ad.scrollLeft){
SL=_ad.scrollLeft;
}
if(_b1&&_ad.scrollTop){
ST=_ad.scrollTop;
}
var r={x:_ad.offsetLeft-SL,y:_ad.offsetTop-ST};
if(!_ae){
r.w=_ad.offsetWidth;
r.h=_ad.offsetHeight;
}
if(_ad.offsetParent){
var tmp=getPosition(_ad.offsetParent,true);
r.x+=tmp.x;
r.y+=tmp.y;
}
return r;
}
var yqueryValues;
function ygetQueryValue(_b4,_b5){
if(typeof yqueryValues=="undefined"){
var _b6=document.location.href;
if(_b6.endsWith("#")){
_b6=_b6.substring(0,_b6.length-1);
}
var _b7=_b6.split("?");
var _b8=_b7[1];
yqueryValues=[];
var _b9=[];
if(_b8){
_b9=_b8.split("&");
}
for(var i=0,n=_b9.length;i<n;i++){
var _bc=_b9[i].split("=");
yqueryValues[decodeURIComponent(_bc[0])]=decodeURIComponent(_bc[1]);
}
}
if(typeof yqueryValues[_b4]=="undefined"){
if(typeof _b5!="undefined"){
return _b5;
}
return "";
}
return yqueryValues[_b4];
}
function ygetWindowDim(){
var _bd=0;
var _be=0;
var _bf=0;
var _c0=0;
if(typeof window.innerHeight=="number"){
_bd=window.innerHeight;
_be=window.innerWidth;
}else{
if(document.documentElement&&document.documentElement.clientHeight){
_bd=document.documentElement.clientHeight;
_be=document.documentElement.clientWidth;
}else{
if(document.body&&document.body.clientHeight){
_bd=document.body.clientHeight;
_be=document.body.clientWidth;
}
}
}
if(typeof window.screenX=="number"){
_bf=window.screenX;
_c0=window.screenY;
}else{
_bf=window.screenLeft-4;
_c0=window.screenTop-30;
}
if(_bf>2000||_bf<-4){
_bf=-4;
}
if(_c0>2000||_c0<-4){
_c0=-4;
}
return {"x":_bf,"y":_c0,"h":_bd,"w":_be};
}
function ygetWindowDimAsStr(w,h){
var dim=ygetWindowDim();
if(typeof w=="number"&&typeof h=="number"){
return dim.x+","+dim.y+","+w+","+h;
}
return dim.x+","+dim.y+","+dim.w+","+dim.h;
}
function ysetWindowDim(dim){
dim=dim.split(",");
dim.x=parseInt(dim[0]);
dim.y=parseInt(dim[1]);
dim.w=parseInt(dim[2])+8;
dim.h=parseInt(dim[3])+56;
if(typeof window.screenLeft=="number"){
dim.w+=4;
dim.h+=5;
}else{
if((dim.x<0||dim.y<0)&&isFirefox){
try{
netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserWrite");
}
catch(e){
alert(firefoxPermissionDeniedMessage("set negative window position"));
}
}
}
if(dim.x>2000||dim.x<-4){
dim.x=-4;
}
if(dim.y>2000||dim.y<-4){
dim.y=-4;
}
try{
window.moveTo(dim.x,dim.y);
window.resizeTo(dim.w,dim.h);
}
catch(e){
}
}
function ygetTextFile(_c5){
if(window.ActiveXObject){
try{
var fso=new ActiveXObject("Scripting.FileSystemObject");
if(fso.FileExists(_c5)==false){
alert(_c5+" not found");
return null;
}
var f=fso.GetFile(_c5);
var _c8=f.OpenAsTextStream(1,0);
var _c9=_c8.Read(f.Size);
_c8.Close();
return _c9;
}
catch(e){
alert("There was a problem reading file "+_c5+".\n"+"Please make sure that you have added this website to your\n"+"trusted sites list in Internet Options (Security tab), and that the\n"+"custom setting 'Automatic prompting for ActiveX controls' is enabled.\n\n("+e.message+")");
return null;
}
}else{
if(isFirefox){
try{
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
}
catch(e){
alert(firefoxPermissionDeniedMessage("read file"));
return null;
}
var _ca=Components.classes["@mozilla.org/file/local;1"].createInstance(Components.interfaces.nsILocalFile);
_ca.initWithPath(_c5);
if(_ca.exists()==false){
alert(_c5+" not found");
return null;
}
var is=Components.classes["@mozilla.org/network/file-input-stream;1"].createInstance(Components.interfaces.nsIFileInputStream);
is.init(_ca,1,4,null);
var sis=Components.classes["@mozilla.org/scriptableinputstream;1"].createInstance(Components.interfaces.nsIScriptableInputStream);
sis.init(is);
var _c9=sis.read(sis.available());
return _c9;
}
}
}
function ysetTextFile(_cd,_ce){
if(window.ActiveXObject){
try{
var fso=new ActiveXObject("Scripting.FileSystemObject");
var tf=fso.CreateTextFile(_cd,true);
tf.Write(_ce);
tf.Close();
return true;
}
catch(e){
alert("There was a problem writing to file "+_cd+".\n"+"Please make sure it is not already opened by another program.\n"+"Also please make sure that you have added this website to your\n"+"trusted sites list in Internet Options (Security tab), and that the\n"+"custom setting 'Automatic prompting for ActiveX controls' is enabled.\n\n("+e.message+")");
return false;
}
}else{
if(isFirefox){
try{
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
}
catch(e){
alert(firefoxPermissionDeniedMessage("write file"));
return false;
}
var _d1=Components.classes["@mozilla.org/file/local;1"].createInstance(Components.interfaces.nsILocalFile);
_d1.initWithPath(_cd);
if(_d1.exists()==false){
_d1.create(Components.interfaces.nsIFile.NORMAL_FILE_TYPE,420);
}
var _d2=Components.classes["@mozilla.org/network/file-output-stream;1"].createInstance(Components.interfaces.nsIFileOutputStream);
_d2.init(_d1,4|8|32,420,0);
var _d3=_d2.write(_ce,_ce.length);
_d2.close();
return true;
}
}
}
function ygetClipboard(_d4){
var _d5="";
if(isChrome&&!_d4){
alert("Please paste using Ctrl & V");
return null;
}
if(window.clipboardData){
_d5=window.clipboardData.getData("Text");
return (_d5===null)?"":_d5;
}else{
if(_d4&&_d4.clipboardData&&_d4.clipboardData.getData){
_d5=_d4.clipboardData.getData("text/plain");
return (_d5===null)?"":_d5;
}else{
if(isFirefox){
try{
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
}
catch(e){
alert(firefoxPermissionDeniedMessage("read from clipboard"));
return null;
}
var _d6=Components.classes["@mozilla.org/widget/clipboard;1"].getService(Components.interfaces.nsIClipboard);
if(!_d6){
alert("getclip");
return null;
}
var _d7=Components.classes["@mozilla.org/widget/transferable;1"].createInstance(Components.interfaces.nsITransferable);
if(!_d7){
alert("gettrans");
return null;
}
_d7.addDataFlavor("text/unicode");
_d6.getData(_d7,_d6.kGlobalClipboard);
var str=new Object();
var _d9=new Object();
_d7.getTransferData("text/unicode",str,_d9);
if(str){
str=str.value.QueryInterface(Components.interfaces.nsISupportsString);
}
if(str){
_d5=str.data.substring(0,_d9.value/2);
}
return (_d5===null)?"":_d5;
}
}
}
alert("Browser not recognised");
return null;
}
function ysetClipboard(_da,_db){
if(window.clipboardData){
window.clipboardData.setData("Text",_db);
}else{
if(isFirefox){
try{
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
}
catch(e){
alert(firefoxPermissionDeniedMessage("write to clipboard"));
}
var _dc=_db;
var str=Components.classes["@mozilla.org/supports-string;1"].createInstance(Components.interfaces.nsISupportsString);
if(!str){
alert("setstr");
return false;
}
str.data=_dc;
var _de=Components.classes["@mozilla.org/widget/transferable;1"].createInstance(Components.interfaces.nsITransferable);
if(!_de){
alert("settrans");
return false;
}
_de.addDataFlavor("text/unicode");
_de.setTransferData("text/unicode",str,_dc.length*2);
var _df=Components.interfaces.nsIClipboard;
var _e0=Components.classes["@mozilla.org/widget/clipboard;1"].getService(_df);
if(!_e0){
alert("setclip");
return false;
}
_e0.setData(_de,null,_df.kGlobalClipboard);
}
}
return true;
}
var resizeFixedHeight;
function resizeStrict(_e1){
if(typeof _e1=="number"){
resizeFixedHeight=_e1;
}
if(typeof resizeFixedHeight=="undefined"){
return alert("resizeFixedHeight is undefined");
}
var dim=ygetWindowDim();
if(dim.h<=0){
return;
}
var _e3=document.getElementById("content");
if(!_e3){
return;
}
_e3.style.height=(dim.h-resizeFixedHeight)+"px";
}
function resizeStrict2(id,_e5){
return (function(){
var dim=ygetWindowDim();
var h=dim.h-_e5;
if(h<=0){
return;
}
var _e8=document.getElementById(id);
if(!_e8){
return;
}
_e8.style.height=h+"px";
});
}
function resizeStrict3(id,_ea,_eb){
return (function(){
var dim=ygetWindowDim();
if(dim.h<=0){
return;
}
var _ed=document.getElementById(id);
if(!_ed){
return;
}
if(typeof _ea=="undefined"){
_ea=0;
}
if(dim.h>_ea){
_ed.style.height=(dim.h-_ea)+"px";
}
if(typeof _eb=="undefined"){
_eb=0;
}
if(dim.w>_eb){
_ed.style.width=(dim.w-_eb)+"px";
}
});
}
function cancelBubble(evt){
evt=(evt)?evt:event;
evt.cancelBubble=true;
evt.returnValue=false;
return false;
}
var checkOn=new Image();
checkOn.src="images/checkon.gif";
var checkOff=new Image();
checkOff.src="images/checkoff.gif";
function mouseOver(msg){
window.status=msg;
}
function mouseOut(){
window.status="";
}
function mouseOverButton(_f0,msg){
if(document.getElementById(_f0).className!="enabled"){
return;
}
document.getElementById(_f0).style.background="#fff";
window.status=msg;
}
function mouseOutButton(_f2,_f3){
document.getElementById(_f2).style.background="#f3f3f3";
window.status="";
}
function mouseOverLink(_f4,msg){
document.getElementById(_f4).style.color="white";
window.status=msg;
}
function mouseOutLink(_f6,_f7){
document.getElementById(_f6).style.color="#003366";
window.status="";
}
function mouseOverTab(tab,msg){
document.getElementById(tab).style.background="#fff";
if(msg){
window.status=msg;
}
}
function mouseOutTab(tab,_fb){
if(tab==currentTab&&!_fb){
document.getElementById(tab).style.background="#fff";
}else{
document.getElementById(tab).style.background="#f3f3f3";
}
window.status="";
}
function dumpSource(_fc,_fd){
var win=window.open("","dump");
if(!_fc){
_fc=document.documentElement.innerHTML;
}
var re=new RegExp("<","g");
var _100=_fc.replace(re,"&lt;");
if(!_fd){
re=/>/g;
_100=_100.replace(re,"><br>");
}
win.document.write("<HTML><HEAD></HEAD><BODY>Source Dump:<BR><BR>"+_100+"</BODY></HTML>");
win.document.close();
}
function listAllProperties(obj){
var _102="";
for(var prop in obj){
_102=_102+"<TR><TD>"+prop+"</TD><TD>"+obj[prop]+"<TD></TR>";
}
var _104=window.open("","sub","");
_104.document.write("<HTML><HEAD><TITLE>Object Properties List</TITLE></HEAD><BODY>Properties list for the object:<BR><BR><TABLE border='1'>"+_102+"</TABLE></BODY></HTML>");
_104.document.close();
}
function ylog(_105){
if(!ylog.win||ylog.win.closed){
var win=window.open("",null,"width=400,height=200,"+"scrollbars=yes,resizable=yes,status=no,"+"location=no,menubar=no,toolbar=no");
if(!win){
return;
}
var doc=win.document;
doc.write("<html><head><title>Debug Log</title></head>"+"<body></body></html>");
doc.close();
log.win=win;
}
var _108=ylog.win.document.createElement("div");
_108.appendChild(ylog.win.document.createTextNode(_105));
ylog.win.document.body.appendChild(_108);
}

