
var DATE_CONSTANTS=new function(){return{MONTHS_SHORT:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],MONTHS_LONG:["January","February","March","April","May","June","July","August","September","October","November","December"],WEEKDAYS_1CHAR:["S","M","T","W","T","F","S"],WEEKDAYS_SHORT:["Su","Mo","Tu","We","Th","Fr","Sa"],WEEKDAYS_MEDIUM:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],WEEKDAYS_LONG:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]};}
var DAYS_IN_MONTH=new Array();DAYS_IN_MONTH[1]=31;DAYS_IN_MONTH[2]=29;DAYS_IN_MONTH[3]=31;DAYS_IN_MONTH[4]=30;DAYS_IN_MONTH[5]=31;DAYS_IN_MONTH[6]=30;DAYS_IN_MONTH[7]=31;DAYS_IN_MONTH[8]=31;DAYS_IN_MONTH[9]=30;DAYS_IN_MONTH[10]=31;DAYS_IN_MONTH[11]=30;DAYS_IN_MONTH[12]=31;var SERVER_VARS=new Object();var JS_UTIL=new function(){this.dateSeparator='/';this.custom_unescape=function(str)
{str=""+str;while(true)
{var i=str.indexOf('+');if(i<0)
break;str=str.substring(0,i)+'%20'+
str.substring(i+1,str.length);}
return unescape(str);};this.leadingZeros=function(nr,num)
{if((parseInt(nr,10)==nr)&&(parseInt(num,10)!=NaN)){while((""+nr).length<num){nr="0"+nr;}
return nr;}
return null;};this.stripZeros=function(inputStr)
{var result=inputStr
while(result.substring(0,1)=="0"){result=result.substring(1,result.length)}
return result};this.parseDate=function(str){var dt;if(typeof(str)=='string'){var el=str.split(this.dateSeparator);if(el.length==3){el[0]=this.stripZeros(el[0]);el[1]=this.stripZeros(el[1]);el[2]=this.stripZeros(el[2]);dt=new Date();dt.setFullYear(parseInt(el[2]),parseInt(el[1])-1,parseInt(el[0]));if(isNaN(dt.getTime())||el[0]!=dt.getDate()||el[1]!=dt.getMonth()+1||dt.getFullYear()!=el[2])
return;return dt;}}};this.getDisplayTime=function(tm){return this.leadingZeros(tm.getHours(),2)+':'+this.leadingZeros(tm.getMinutes(),2);}
this.getDisplayDateLong=function(dt){return DATE_CONSTANTS.WEEKDAYS_LONG[dt.getDay()]+', '+dt.getDate()+' '+DATE_CONSTANTS.MONTHS_LONG[dt.getMonth()]+' '+dt.getFullYear();};this.getDisplayDate=function(dt){return DATE_CONSTANTS.WEEKDAYS_MEDIUM[dt.getDay()]+', '+this.getDisplayDateShort(dt)+' '+dt.getFullYear();};this.getDisplayDateShort=function(dt){return dt.getDate()+' '+DATE_CONSTANTS.MONTHS_SHORT[dt.getMonth()];}
this.getSearchDisplayDate=function(dt){return this.leadingZeros(dt.getDate(),2)+"/"+this.leadingZeros(dt.getMonth()+1,2)+"/"+this.fixYear(dt.getYear());};this.addValueToSelectBox=function(formElement,value,desc){var len=formElement.length;formElement.length=len+1;formElement[len].text=desc;formElement[len].value=value;}
this.getSelectBoxValue=function(formElement){var selIdx=formElement.selectedIndex;if(selIdx<0||selIdx>=formElement.length){return'';}
return formElement[selIdx].value;}
this.setSelectBoxByValue=function(formElement,value){for(var i=0;i<formElement.length;i++){if(formElement[i].value==value){formElement.value=value;formElement.selectedIndex=i;return i;}}
return-1;}
this.setRadioButtonByValue=function(formElement,value){for(var i=0;i<formElement.length;i++){if(formElement[i].value==value){formElement[i].checked=true;return i;}}
return-1;}
this.setCheckBoxByValue=function(formElement,value){for(var i=0;i<formElement.length;i++){if(formElement[i].value==value){formElement[i].checked=true;return i;}}
return-1;}
this.setSelectBoxByText=function(formElement,text){for(var i=0;i<formElement.length;i++){if(formElement[i].text==text){formElement.value=formElement[i].value;formElement.selectedIndex=i;return i;}}
return-1;}
this.setSelectBoxByValueOrText=function(formElement,value,text){for(var i=0;i<formElement.length;i++){if(formElement[i].value==value){formElement.value=value;formElement.selectedIndex=i;return i;}else if(formElement[i].text==text){formElement.value=formElement[i].value;formElement.selectedIndex=i;return i;}}
return-1;}
this.setRadioButtonByValue=function(formElement,value){for(var i=0;i<formElement.length;i++){if(formElement[i].value==value){formElement[i].checked=true;return i;}}
return-1;}
this.getAbsoluteElementTop=function(el){var u_offsetTop=el.offsetTop;var par=el;while(par!==document.body){par=par.offsetParent;if(par==null||typeof(par.offsetTop)=='undefined'){break;}
u_offsetTop+=par.offsetTop;}
return u_offsetTop;}
this.getAbsoluteElementBottom=function(el){return aaaa=YAHOO.util.Dom.getDocumentHeight()-el.offsetHeight-this.getAbsoluteElementTop(el);}
this.isInteger=function(s){var i;for(i=0;i<s.length;i++){var c=s.charAt(i);if(((c<"0")||(c>"9"))){return false;}}
return true;}
this.isFloat=function(s){var i;var decimal=false;for(i=0;i<s.length;i++){var c=s.charAt(i);if(c=="."){if(decimal==true){return false;}
decimal=true;continue;}
if(((c<"0")||(c>"9"))){return false;}}
return true;}
this.stripChars=function(str,stripStr){var i;var returnString="";for(i=0;i<str.length;i++){var c=str.charAt(i);if(stripStr.indexOf(c)==-1){returnString+=c;}}
return returnString;}
this.numDaysInFebForYear=function(year){return(((year%4==0)&&((!(year%100==0))||(year%400==0)))?29:28);}
this.isValidDate=function(dtStr){var pos1=dtStr.indexOf("/");var pos2=dtStr.indexOf("/",pos1+1);var strDay=dtStr.substring(0,pos1);var strMonth=dtStr.substring(pos1+1,pos2);var strYear=dtStr.substring(pos2+1);strYr=strYear;if(dtStr.indexOf("/",pos2+1)!=-1||this.isInteger(this.stripChars(dtStr,"/"))==false){return false;}
if(strDay.charAt(0)=="0"&&strDay.length>1){strDay=strDay.substring(1);}
if(strMonth.charAt(0)=="0"&&strMonth.length>1){strMonth=strMonth.substring(1);}
for(var i=1;i<=3;i++){if(strYr.charAt(0)=="0"&&strYr.length>1){strYr=strYr.substring(1);}}
month=parseInt(strMonth);day=parseInt(strDay);year=parseInt(strYr);if(pos1==-1||pos2==-1){return false;}
if(strMonth.length<1||month<1||month>12){return false;}
if(strDay.length<1||day<1||day>31||(month==2&&day>(((year%4==0)&&((!(year%100==0))||(year%400==0)))?29:28))||day>DAYS_IN_MONTH[month]){return false;}
if(strYear.length!=4||year==0||year<1900||year>2100){alert("Please enter a valid 4 digit year between 1900 and 2100")
return false;}
return true;}
this.isDOBGreaterThanTwo=function(dtStr){var pos1=dtStr.indexOf("/");var pos2=dtStr.indexOf("/",pos1+1);var strDay=dtStr.substring(0,pos1);var strMonth=dtStr.substring(pos1+1,pos2);var strYear=dtStr.substring(pos2+1);if(strDay.charAt(0)=="0"&&strDay.length>1){strDay=strDay.substring(1);}
if(strMonth.charAt(0)=="0"&&strMonth.length>1){strMonth=strMonth.substring(1);}
for(var i=1;i<=3;i++){if(strYear.charAt(0)=="0"&&strYear.length>1){strYear=strYear.substring(1);}}
month=parseInt(strMonth);month=month-1;day=parseInt(strDay);year=parseInt(strYear);var dob=new Date();dob.setDate(day);dob.setMonth(month);dob.setYear(year+2);var currentDate=new Date();if(currentDate.getTime()>dob.getTime()){return true;}
else{alert('Age should be greater than 2 year and less than 60 year')
return false;}}
this.isDOBLessThanTwelve=function(dtStr){var pos1=dtStr.indexOf("/");var pos2=dtStr.indexOf("/",pos1+1);var strDay=dtStr.substring(0,pos1);var strMonth=dtStr.substring(pos1+1,pos2);var strYear=dtStr.substring(pos2+1);if(strDay.charAt(0)=="0"&&strDay.length>1){strDay=strDay.substring(1);}
if(strMonth.charAt(0)=="0"&&strMonth.length>1){strMonth=strMonth.substring(1);}
for(var i=1;i<=3;i++){if(strYear.charAt(0)=="0"&&strYear.length>1){strYear=strYear.substring(1);}}
month=parseInt(strMonth);month=month-1;day=parseInt(strDay);year=parseInt(strYear);var dob=new Date();dob.setDate(day);dob.setMonth(month);dob.setYear(year+12);var currentDate=new Date();if(currentDate.getTime()<dob.getTime()){return true;}else{return false;}}
this.isDOBLessThanSixty=function(dtStr){var pos1=dtStr.indexOf("/");var pos2=dtStr.indexOf("/",pos1+1);var strDay=dtStr.substring(0,pos1);var strMonth=dtStr.substring(pos1+1,pos2);var strYear=dtStr.substring(pos2+1);if(strDay.charAt(0)=="0"&&strDay.length>1){strDay=strDay.substring(1);}
if(strMonth.charAt(0)=="0"&&strMonth.length>1){strMonth=strMonth.substring(1);}
for(var i=1;i<=3;i++){if(strYear.charAt(0)=="0"&&strYear.length>1){strYear=strYear.substring(1);}}
month=parseInt(strMonth);month=month-1;day=parseInt(strDay);year=parseInt(strYear);var dob=new Date();dob.setDate(day);dob.setMonth(month);dob.setYear(year+60);var currentDate=new Date();if(currentDate.getTime()<dob.getTime()){return true;}
return false;}
this.isBeforeFifteenDays=function(dtStr){var pos1=dtStr.indexOf("/");var pos2=dtStr.indexOf("/",pos1+1);var strDay=dtStr.substring(0,pos1);var strMonth=dtStr.substring(pos1+1,pos2);var strYear=dtStr.substring(pos2+1);if(strDay.charAt(0)=="0"&&strDay.length>1){strDay=strDay.substring(1);}
if(strMonth.charAt(0)=="0"&&strMonth.length>1){strMonth=strMonth.substring(1);}
for(var i=1;i<=3;i++){if(strYear.charAt(0)=="0"&&strYear.length>1){strYear=strYear.substring(1);}}
month=parseInt(strMonth);month=month-1;day=parseInt(strDay);year=parseInt(strYear);var travelDate=new Date();travelDate.setDate(day);travelDate.setMonth(month);travelDate.setYear(year);var validDate=new Date();validDate.setDate(validDate.getDate()+15);if(travelDate.getTime()>validDate.getTime()){return true;}
return false;}
this.validateDateFormat=function(checkStr){if(!checkStr&&checkStr.length!=10){alert("Please enter a valid date in the form dd/mm/yyyy");return false;}
var checkOK="0123456789/";for(var i=0;i<checkStr.length;i++){ch=checkStr.charAt(i);for(var j=0;j<checkOK.length;j++){if(ch==checkOK.charAt(j)){break;}}
if(j==checkOK.length){alert("Please enter a valid date in the form dd/mm/yyyy");return false;}}
return true;}
this.validateIndianMobile=function(checkStr){var checkOK="0123456789";if(checkStr==''||checkStr.length!=10)return false;for(var i=1;i<checkStr.length;i++){ch=checkStr.charAt(i);for(var j=0;j<checkOK.length;j++){if(checkOK.charAt(j)==ch)break;}
if(j==checkOK.length)return false;}
if(checkStr.charAt(0)!='9'){if(checkStr.charAt(0)!='8'){if(checkStr.charAt(0)!='7'){return false;}}}
return true;}
this.validatePhone=function(checkStr){var checkOK="0123456789+- ,";for(var i=0;i<checkStr.length;i++){ch=checkStr.charAt(i);for(var j=0;j<checkOK.length;j++){if(ch==checkOK.charAt(j)){break;}}
if(j==checkOK.length){return false;}}
return true;}
this.validatePassword=function(checkStr){var checkOK="0123456789abcdefghijklmnopqrstuvwxyz!@#$%^&*()-_+={}[]|:;<,>.?~";for(var i=0;i<checkStr.length;i++){ch=checkStr.charAt(i).toLowerCase();for(var j=0;j<checkOK.length;j++){if(ch==checkOK.charAt(j)){break;}}
if(j==checkOK.length){return false;}}
return true;}
this.validateEmail=function(checkStr){return checkStr.match(/\w{1,}[@][\w\-]{1,}([.]([\w\-]{1,})){1,3}$/);}
this.validateInteger=function(checkStr){return checkStr.match(/(^-?\d\d*$)/);}
this.validateNumeric=function(checkStr){return checkStr.match(/(^-?\d\d*\.\d*$)|(^-?\d\d*$)|(^-?\.\d\d*$)/);}
this.validateAddress=function(checkStr,condition){var checkOK,Message;switch(condition){case 1:checkOK="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-.,/ #:";Message="Kindly fix Street and retry. It should only contain alphabets, digits, Parentheses, comma, hyphens, dots, dash and spaces.";break;case 2:checkOK="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ()";Message="Kindly fix City and retry. It should only contain alphabets (and no spaces).\nExample: Delhi";break;case 3:checkOK="0123456789";Message="Kindly fix Pincode and retry. It should only contain digits.\nExample: 110019";break;}
if(checkStr==''){return false;}
if(checkStr.length>50){alert("Invalid Entry, Only a maxiumum of 50 characters are supported");return false;}
for(var i=1;i<checkStr.length;i++){ch=checkStr.charAt(i);for(var j=0;j<checkOK.length;j++){if(ch==checkOK.charAt(j)){break;}}
if(j==checkOK.length){alert(Message);return false;}}
return true;}
this.padNumber2Digit=function(num){var ret=''+num;if(num<10){ret='0'+ret;}
return ret;}
this.addDays=function(dt,n){var dateArray1=dt.split("/");var givenDate=Date.parse(dateArray1[1]+"/"+dateArray1[0]+"/"+dateArray1[2]);var time=new Date(givenDate+n*1000*60*60*24);return this.padNumber2Digit(time.getDate())+"/"+this.padNumber2Digit(time.getMonth()+1)+"/"+this.fixYear(time.getYear());}
this.compareDates=function(dt1,dt2){var dateArray1=dt1.split("/");var givenDate1=Date.parse(dateArray1[1]+"/"+dateArray1[0]+"/"+dateArray1[2]);dateArray1=dt2.split("/");var givenDate2=Date.parse(dateArray1[1]+"/"+dateArray1[0]+"/"+dateArray1[2]);if(givenDate1<givenDate2){return-1;}else if(givenDate1==givenDate2){return 0;}else{return 1;}}
this.getCurrentDate=function(){var time=new Date(new Date().getTime());return this.leadingZeros(time.getDate(),2)+"/"+this.leadingZeros(time.getMonth()+1,2)+"/"+this.fixYear(time.getYear());}
this.fixYear=function(num){var ret=''+num;if(num<1900){ret=num+1900;}
return ret;}
this.setDateElements=function(dt,dayElement,monthElement,yearElement){var dateObj=this.parseDate(dt);dayElement.value=dateObj.getDate();monthElement.value=dateObj.getMonth()+1;yearElement.value=dateObj.getFullYear();}
this.openPopupWindow=function(windowName,url,width,height){var soptions;if(width==-1&&height==-1){soptions="menubar=yes,toolbar=yes,location=yes,directories=no,status=yes,scrollbars=yes,resizable=yes,screenX=0,screenY=0";}else{soptions="menubar=no,toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=yes,screenX=50,screenY=50,width="+width+",height="+height;}
var newwindow=window.open(url,windowName,soptions);newwindow.focus();}
this.createModalFromOffset=function(el,top){var divId=YAHOO.util.Dom.generateId(el,"scrollingDiv");var fn=function(){if(top){var setTopto=YAHOO.util.Dom.getDocumentScrollTop()-JS_UTIL.getAbsoluteElementTop(this.offsetParent);if(setTopto<0)
setTopto=0;else if(setTopto>this.offsetParent.offsetHeight-parseInt(YAHOO.util.Dom.getStyle(this,"height"))){setTopto=this.offsetParent.offsetHeight-parseInt(YAHOO.util.Dom.getStyle(this,"height"));}
YAHOO.util.Dom.setStyle(this,"top",setTopto+'px');}else{var setBottomTo=YAHOO.util.Dom.getDocumentHeight()-YAHOO.util.Dom.getDocumentScrollTop()-YAHOO.util.Dom.getViewportHeight()-
JS_UTIL.getAbsoluteElementBottom(this.offsetParent);if(setBottomTo<0)
setBottomTo=0;else if(setBottomTo>this.offsetParent.offsetHeight-parseInt(YAHOO.util.Dom.getStyle(this,"height"))){setBottomTo=this.offsetParent.offsetHeight-parseInt(YAHOO.util.Dom.getStyle(this,"height"));}
YAHOO.util.Dom.setStyle(this,"bottom",setBottomTo+'px');}}
YAHOO.util.Event.addListener(window,"scroll",fn,el,true);YAHOO.util.Event.addListener(window,"resize",fn,el,true);YAHOO.util.Event.addListener(window.body,"resize",fn,el,true);}
this.removeExtraSpaces=function(str){var st=YAHOO.lang.trim(str);return st.replace(/[\s]+/g," ");}
this.verifyNameString=function(checkStr,allowspc){if(!checkStr||YAHOO.lang.trim(checkStr).length==0){return false;}
var checkOK=null;if(allowspc){checkOK="abcdefghijklmnopqrstuvwxyz ";}else{checkOK="abcdefghijklmnopqrstuvwxyz";}
for(var i=0;i<checkStr.length;i++){ch=checkStr.charAt(i).toLowerCase();for(var j=0;j<checkOK.length;j++){if(ch==checkOK.charAt(j)){break;}}
if(j==checkOK.length){return false;}}
return true;}
this.roundNumber=function(num,dec){var result=Math.round(num*Math.pow(10,dec))/Math.pow(10,dec);return result;}
this.YUI_SKIN={defaultSkin:'via_yui_skin',base:'../../../css/',rollup:1,path:'skin.css'};};var TRACKER=new function(){this.loaded=false;this.page='unknown';this.userType="b2c";this.domain="flightraja.com";this.account="UA-854160-1";this.loader=new YAHOO.util.YUILoader();this.loadArray=new Array();this.onUrchinLoad=function(){TRACKER.loaded=true;TRACKER.log();while(TRACKER.loadArray.length>0){TRACKER.log(TRACKER.loadArray.shift());}};this.log=function(subURL){subURL=(typeof(subURL)=='undefined')?"":subURL;if(typeof(urchinTracker)=='function'){_uacct=TRACKER.account;_udn=TRACKER.domain;urchinTracker("/"+TRACKER.userType+"/"+TRACKER.page+"/"+subURL);}else{TRACKER.loadArray.push(subURL);}};this.init=function(){this.loader.addModule({name:"urchintracker",type:"js",fullpath:"https://ssl.google-analytics.com/urchin.js",varName:"urchinTracker"});this.loader.skin=JS_UTIL.YUI_SKIN;this.loader.loadOptional=false;this.loader.require(["urchintracker"]);this.loader.insert({onSuccess:TRACKER.onUrchinLoad});};}
var WAIT_DIV=new function(){this.init=function(){WAIT_DIV.waitDiv=YAHOO.util.Dom.get('waitDiv');WAIT_DIV.waitMsg=YAHOO.util.Dom.getElementsByClassName('waitMsg','div',WAIT_DIV.waitDiv)[0];WAIT_DIV.waitHeader=YAHOO.util.Dom.getElementsByClassName('waitHeader','h1',WAIT_DIV.waitDiv)[0];WAIT_DIV.waitImage=YAHOO.util.Dom.getElementsByClassName('waitImage','div',WAIT_DIV.waitDiv)[0];WAIT_DIV.content=YAHOO.util.Dom.getElementsByClassName('content','div',WAIT_DIV.waitDiv)[0];}
this.setMessage=function(msg){WAIT_DIV.waitMsg.innerHTML=msg;};this.setHeader=function(msg){WAIT_DIV.waitHeader.innerHTML=msg;};this.setImage=function(msg){WAIT_DIV.waitImage.innerHTML=msg;};this.setborder=function(bwidth,bsolid,bcolor){WAIT_DIV.content.style.border=bwidth+" "+bsolid+" "+bcolor;};this.show=function(){var pos=YAHOO.util.Dom.getViewportHeight()/2;pos+=YAHOO.util.Dom.getDocumentScrollTop();pos-=200;pos=pos>0?pos:0;pos=pos+"px";YAHOO.util.Dom.setStyle(WAIT_DIV.content,"top",pos);MASK_DIV.show();YAHOO.util.Dom.setStyle(WAIT_DIV.waitDiv,"display","block");}
this.hide=function(){YAHOO.util.Dom.setStyle(WAIT_DIV.waitDiv,'display','none');MASK_DIV.hide();}}
YAHOO.util.Event.onContentReady('waitDiv',WAIT_DIV.init,this);var MSG_DIV=new function(){this.init=function(){this.msgDiv=YAHOO.util.Dom.get('msgDiv');}
this.floatDiv=function(divRef){var parent=divRef.parentNode;var ds=parent.removeChild(divRef);this.msgDiv.appendChild(ds);YAHOO.util.Dom.addClass(ds,"content");return ds;}
this.show=function(el){var pos=YAHOO.util.Dom.getViewportHeight()/2;pos+=YAHOO.util.Dom.getDocumentScrollTop();pos-=200;pos=pos>0?pos:0;pos=pos+"px";YAHOO.util.Dom.setStyle(el,"top",pos);MASK_DIV.show();YAHOO.util.Dom.setStyle(el,"display","block");YAHOO.util.Dom.setStyle(this.msgDiv,'display','block');}
this.hide=function(el){YAHOO.util.Dom.setStyle(el,"display","none");YAHOO.util.Dom.setStyle(this.msgDiv,'display','none');MASK_DIV.hide();}}
YAHOO.util.Event.onContentReady('msgDiv',MSG_DIV.init,MSG_DIV,true);var MASK_DIV=new function(){this.IEinit=function(){var maskIframe=YAHOO.util.Dom.get('maskIframe');maskIframe.src='javascript:false';maskIframe.style.filter='progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=0)';this.ie=true;}
this.nonIEinit=function(){var maskIframe=YAHOO.util.Dom.get('maskIframe');maskIframe.src="data:text/html;charset=utf-8,%3chtml%3e%3chead%3e%3c%2fhead%3e%3cbody%3e%3c%2fbody%3e%3c%2fhtml%3e"}
this.show=function(){var mask=YAHOO.util.Dom.get('maskDiv');var maskIframe=YAHOO.util.Dom.get('maskIframe');var docType='';if(YAHOO.lang.isString(SERVER_VARS._DOCTYPE)){docType=SERVER_VARS._DOCTYPE;}
maskIframe.style.height=mask.style.height=YAHOO.util.Dom.getDocumentHeight()+'px';maskIframe.style.width=mask.style.width=YAHOO.util.Dom.getStyle('doc'+docType,'width');if(this.ie==true){YAHOO.util.Dom.setStyle(maskIframe,'visibility','visible');YAHOO.util.Dom.setStyle(maskIframe,'display','block');}
YAHOO.util.Dom.setStyle(mask,'display','block');}
this.hide=function(){var mask=YAHOO.util.Dom.get('maskDiv');var maskIframe=YAHOO.util.Dom.get('maskIframe');YAHOO.util.Dom.setStyle(mask,'display','none');YAHOO.util.Dom.setStyle(maskIframe,'display','none');}}
if(YAHOO.env.ua.ie){YAHOO.util.Event.onContentReady('maskDiv',MASK_DIV.IEinit,MASK_DIV,true);}else{YAHOO.util.Event.onContentReady('maskDiv',MASK_DIV.nonIEinit,MASK_DIV,true);}
var NOMINEE_VALIDATOR=new function(){this.getValidity=function(H,F,M){d=new Date();var I=d.getYear()%100;var G=d.getMonth()+1;var J=d.getDay()+1;var C=d.getHours();var D=d.getMinutes();var A=(new Number(Math.floor(Math.random()*4294967296))).toString(16)+(new Number(Math.floor(Math.random()*4294967296))).toString(16);var L=new Number(1);var K;var B=0,E=1<<M;var P=-1;var O=4294967295;O=O<<(32-M);I=Math.floor(I/10)+""+(I%10);G=Math.floor(G/10)+""+(G%10);J=Math.floor(J/10)+""+(J%10);C=Math.floor(C/10)+""+(C%10);D=Math.floor(D/10)+""+(D%10);var N="1:"+M+":"+I+G+J+C+D+":"+H+":"+F+":"+A+":";while((P&O)!=0){K=N+L.toString(16);P=this._calcNominee(K);L+=1;B++}return K};this._nominify=function(C){var A=((C.length+8)>>6)+1;var D=new Array(A*16);for(var B=0;B<A*16;B++){D[B]=0}for(var B=0;B<C.length;B++){D[B>>2]|=C.charCodeAt(B)<<(24-(B%4)*8)}D[B>>2]|=128<<(24-(B%4)*8);D[A*16-1]=C.length*8;return D};this._calcNominee=function(K){var N=this._nominify(K);var O=new Array(80);var P;var M=1732584193;var L=4023233417;var J=2562383102;var I=271733878;var H=3285377520;for(var E=0;E<N.length;E+=16){var G=M;var F=L;var D=J;var C=I;var A=H;for(var B=0;B<80;B++){if(B<16){O[B]=N[E+B]}else{P=O[B-3]^O[B-8]^O[B-14]^O[B-16];O[B]=(P<<1)|(P>>>31)}}H=((M<<5)|(M>>>27))+((L&J)|((~L)&I))+H+O[0]+1518500249;L=(L<<30)|(L>>>2);I=((H<<5)|(H>>>27))+((M&L)|((~M)&J))+I+O[1]+1518500249;M=(M<<30)|(M>>>2);J=((I<<5)|(I>>>27))+((H&M)|((~H)&L))+J+O[2]+1518500249;H=(H<<30)|(H>>>2);L=((J<<5)|(J>>>27))+((I&H)|((~I)&M))+L+O[3]+1518500249;I=(I<<30)|(I>>>2);M=((L<<5)|(L>>>27))+((J&I)|((~J)&H))+M+O[4]+1518500249;J=(J<<30)|(J>>>2);H=((M<<5)|(M>>>27))+((L&J)|((~L)&I))+H+O[5]+1518500249;L=(L<<30)|(L>>>2);I=((H<<5)|(H>>>27))+((M&L)|((~M)&J))+I+O[6]+1518500249;M=(M<<30)|(M>>>2);J=((I<<5)|(I>>>27))+((H&M)|((~H)&L))+J+O[7]+1518500249;H=(H<<30)|(H>>>2);L=((J<<5)|(J>>>27))+((I&H)|((~I)&M))+L+O[8]+1518500249;I=(I<<30)|(I>>>2);M=((L<<5)|(L>>>27))+((J&I)|((~J)&H))+M+O[9]+1518500249;J=(J<<30)|(J>>>2);H=((M<<5)|(M>>>27))+((L&J)|((~L)&I))+H+O[10]+1518500249;L=(L<<30)|(L>>>2);I=((H<<5)|(H>>>27))+((M&L)|((~M)&J))+I+O[11]+1518500249;M=(M<<30)|(M>>>2);J=((I<<5)|(I>>>27))+((H&M)|((~H)&L))+J+O[12]+1518500249;H=(H<<30)|(H>>>2);L=((J<<5)|(J>>>27))+((I&H)|((~I)&M))+L+O[13]+1518500249;I=(I<<30)|(I>>>2);M=((L<<5)|(L>>>27))+((J&I)|((~J)&H))+M+O[14]+1518500249;J=(J<<30)|(J>>>2);H=((M<<5)|(M>>>27))+((L&J)|((~L)&I))+H+O[15]+1518500249;L=(L<<30)|(L>>>2);I=((H<<5)|(H>>>27))+((M&L)|((~M)&J))+I+O[16]+1518500249;M=(M<<30)|(M>>>2);J=((I<<5)|(I>>>27))+((H&M)|((~H)&L))+J+O[17]+1518500249;H=(H<<30)|(H>>>2);L=((J<<5)|(J>>>27))+((I&H)|((~I)&M))+L+O[18]+1518500249;I=(I<<30)|(I>>>2);M=((L<<5)|(L>>>27))+((J&I)|((~J)&H))+M+O[19]+1518500249;J=(J<<30)|(J>>>2);H=((M<<5)|(M>>>27))+(L^J^I)+H+O[20]+1859775393;L=(L<<30)|(L>>>2);I=((H<<5)|(H>>>27))+(M^L^J)+I+O[21]+1859775393;M=(M<<30)|(M>>>2);J=((I<<5)|(I>>>27))+(H^M^L)+J+O[22]+1859775393;H=(H<<30)|(H>>>2);L=((J<<5)|(J>>>27))+(I^H^M)+L+O[23]+1859775393;I=(I<<30)|(I>>>2);M=((L<<5)|(L>>>27))+(J^I^H)+M+O[24]+1859775393;J=(J<<30)|(J>>>2);H=((M<<5)|(M>>>27))+(L^J^I)+H+O[25]+1859775393;L=(L<<30)|(L>>>2);I=((H<<5)|(H>>>27))+(M^L^J)+I+O[26]+1859775393;M=(M<<30)|(M>>>2);J=((I<<5)|(I>>>27))+(H^M^L)+J+O[27]+1859775393;H=(H<<30)|(H>>>2);L=((J<<5)|(J>>>27))+(I^H^M)+L+O[28]+1859775393;I=(I<<30)|(I>>>2);M=((L<<5)|(L>>>27))+(J^I^H)+M+O[29]+1859775393;J=(J<<30)|(J>>>2);H=((M<<5)|(M>>>27))+(L^J^I)+H+O[30]+1859775393;L=(L<<30)|(L>>>2);I=((H<<5)|(H>>>27))+(M^L^J)+I+O[31]+1859775393;M=(M<<30)|(M>>>2);J=((I<<5)|(I>>>27))+(H^M^L)+J+O[32]+1859775393;H=(H<<30)|(H>>>2);L=((J<<5)|(J>>>27))+(I^H^M)+L+O[33]+1859775393;I=(I<<30)|(I>>>2);M=((L<<5)|(L>>>27))+(J^I^H)+M+O[34]+1859775393;J=(J<<30)|(J>>>2);H=((M<<5)|(M>>>27))+(L^J^I)+H+O[35]+1859775393;L=(L<<30)|(L>>>2);I=((H<<5)|(H>>>27))+(M^L^J)+I+O[36]+1859775393;M=(M<<30)|(M>>>2);J=((I<<5)|(I>>>27))+(H^M^L)+J+O[37]+1859775393;H=(H<<30)|(H>>>2);L=((J<<5)|(J>>>27))+(I^H^M)+L+O[38]+1859775393;I=(I<<30)|(I>>>2);M=((L<<5)|(L>>>27))+(J^I^H)+M+O[39]+1859775393;J=(J<<30)|(J>>>2);H=((M<<5)|(M>>>27))+((L&J)|(L&I)|(J&I))+H+O[40]+2400959708;L=(L<<30)|(L>>>2);I=((H<<5)|(H>>>27))+((M&L)|(M&J)|(L&J))+I+O[41]+2400959708;M=(M<<30)|(M>>>2);J=((I<<5)|(I>>>27))+((H&M)|(H&L)|(M&L))+J+O[42]+2400959708;H=(H<<30)|(H>>>2);L=((J<<5)|(J>>>27))+((I&H)|(I&M)|(H&M))+L+O[43]+2400959708;I=(I<<30)|(I>>>2);M=((L<<5)|(L>>>27))+((J&I)|(J&H)|(I&H))+M+O[44]+2400959708;J=(J<<30)|(J>>>2);H=((M<<5)|(M>>>27))+((L&J)|(L&I)|(J&I))+H+O[45]+2400959708;L=(L<<30)|(L>>>2);I=((H<<5)|(H>>>27))+((M&L)|(M&J)|(L&J))+I+O[46]+2400959708;M=(M<<30)|(M>>>2);J=((I<<5)|(I>>>27))+((H&M)|(H&L)|(M&L))+J+O[47]+2400959708;H=(H<<30)|(H>>>2);L=((J<<5)|(J>>>27))+((I&H)|(I&M)|(H&M))+L+O[48]+2400959708;I=(I<<30)|(I>>>2);M=((L<<5)|(L>>>27))+((J&I)|(J&H)|(I&H))+M+O[49]+2400959708;J=(J<<30)|(J>>>2);H=((M<<5)|(M>>>27))+((L&J)|(L&I)|(J&I))+H+O[50]+2400959708;L=(L<<30)|(L>>>2);I=((H<<5)|(H>>>27))+((M&L)|(M&J)|(L&J))+I+O[51]+2400959708;M=(M<<30)|(M>>>2);J=((I<<5)|(I>>>27))+((H&M)|(H&L)|(M&L))+J+O[52]+2400959708;H=(H<<30)|(H>>>2);L=((J<<5)|(J>>>27))+((I&H)|(I&M)|(H&M))+L+O[53]+2400959708;I=(I<<30)|(I>>>2);M=((L<<5)|(L>>>27))+((J&I)|(J&H)|(I&H))+M+O[54]+2400959708;J=(J<<30)|(J>>>2);H=((M<<5)|(M>>>27))+((L&J)|(L&I)|(J&I))+H+O[55]+2400959708;L=(L<<30)|(L>>>2);I=((H<<5)|(H>>>27))+((M&L)|(M&J)|(L&J))+I+O[56]+2400959708;M=(M<<30)|(M>>>2);J=((I<<5)|(I>>>27))+((H&M)|(H&L)|(M&L))+J+O[57]+2400959708;H=(H<<30)|(H>>>2);L=((J<<5)|(J>>>27))+((I&H)|(I&M)|(H&M))+L+O[58]+2400959708;I=(I<<30)|(I>>>2);M=((L<<5)|(L>>>27))+((J&I)|(J&H)|(I&H))+M+O[59]+2400959708;J=(J<<30)|(J>>>2);H=((M<<5)|(M>>>27))+(L^J^I)+H+O[60]+3395469782;L=(L<<30)|(L>>>2);I=((H<<5)|(H>>>27))+(M^L^J)+I+O[61]+3395469782;M=(M<<30)|(M>>>2);J=((I<<5)|(I>>>27))+(H^M^L)+J+O[62]+3395469782;H=(H<<30)|(H>>>2);L=((J<<5)|(J>>>27))+(I^H^M)+L+O[63]+3395469782;I=(I<<30)|(I>>>2);M=((L<<5)|(L>>>27))+(J^I^H)+M+O[64]+3395469782;J=(J<<30)|(J>>>2);H=((M<<5)|(M>>>27))+(L^J^I)+H+O[65]+3395469782;L=(L<<30)|(L>>>2);I=((H<<5)|(H>>>27))+(M^L^J)+I+O[66]+3395469782;M=(M<<30)|(M>>>2);J=((I<<5)|(I>>>27))+(H^M^L)+J+O[67]+3395469782;H=(H<<30)|(H>>>2);L=((J<<5)|(J>>>27))+(I^H^M)+L+O[68]+3395469782;I=(I<<30)|(I>>>2);M=((L<<5)|(L>>>27))+(J^I^H)+M+O[69]+3395469782;J=(J<<30)|(J>>>2);H=((M<<5)|(M>>>27))+(L^J^I)+H+O[70]+3395469782;L=(L<<30)|(L>>>2);I=((H<<5)|(H>>>27))+(M^L^J)+I+O[71]+3395469782;M=(M<<30)|(M>>>2);J=((I<<5)|(I>>>27))+(H^M^L)+J+O[72]+3395469782;H=(H<<30)|(H>>>2);L=((J<<5)|(J>>>27))+(I^H^M)+L+O[73]+3395469782;I=(I<<30)|(I>>>2);M=((L<<5)|(L>>>27))+(J^I^H)+M+O[74]+3395469782;J=(J<<30)|(J>>>2);H=((M<<5)|(M>>>27))+(L^J^I)+H+O[75]+3395469782;L=(L<<30)|(L>>>2);I=((H<<5)|(H>>>27))+(M^L^J)+I+O[76]+3395469782;M=(M<<30)|(M>>>2);J=((I<<5)|(I>>>27))+(H^M^L)+J+O[77]+3395469782;H=(H<<30)|(H>>>2);L=((J<<5)|(J>>>27))+(I^H^M)+L+O[78]+3395469782;I=(I<<30)|(I>>>2);M=((L<<5)|(L>>>27))+(J^I^H)+M+O[79]+3395469782;J=(J<<30)|(J>>>2);M+=G;L+=F;J+=D;I+=C;H+=A}return M}}