var QuillUtil={lang:"hindi",getLangLegacy:function(){
if(window.defaultLang){
return window.defaultLang;
}
var _1;
try{
_1=window.location.pathname.match(/\/[a-z]+/g);
if(window.location.pathname.slice(-1)==="/"){
return _1[_1.length-1].substring(1);
}
return _1[_1.length-2].substring(1);
}
catch(e){
return "hindi";
}
},getLang:function(){
return QuillUtil.lang;
},setLang:function(_2){
QuillUtil.lang=_2;
},isValidEmailID:function(_3){
var _4=_3.match(/^[0-9a-zA-Z_\.-]+@([0-9a-zA-Z_-]+\.)+[a-zA-Z0-9_-]+$/);
return (_4!==null);
},isValidEmailIDGroup:function(_5){
var _6=_5.split(/[\s\+,]+/);
var _7;
if(_6.length<1){
return false;
}
for(var i=0;i<_6.length;++i){
_7=_6[i].match(/^[0-9a-zA-Z_\.-]+@([0-9a-zA-Z_-]+\.)+[a-zA-Z0-9_-]+$/);
if(_7===null){
return false;
}
}
return true;
},getRandom:function(_9){
var _a=Math.random()-0.5;
_a=_a*Math.pow(2,32);
return Math.floor(_a);
},getBrowser:function(){
var ua=window.navigator.userAgent.toLowerCase();
var _c;
var _d;
var _e;
if(ua.indexOf("opera")!=-1){
return "opera";
}else{
if(ua.indexOf("safari")!=-1){
return "safari";
}else{
if(ua.indexOf("msie 6.0")!=-1||ua.indexOf("msie 7.0")!=-1){
return "ie";
}else{
if(ua.indexOf("mozilla")!=-1){
_d=ua.indexOf("gecko/");
if(_d==-1){
return "oldmoz";
}
_e=ua.indexOf(" ",_d);
if(_e==-1){
_e=ua.length;
}
_c=parseInt(ua.substring(_d+6,_e),10);
if(_c<20051107){
return "oldmoz";
}
return "moz";
}
}
}
}
return "unknown";
},isBlank:function(_f){
if(_f.match(/^\s*$/)){
return true;
}
return false;
},isValidURL:function(_10){
if(_10.match(/^http:\/\/.*$/)){
return true;
}
return false;
},isAlpha:function(_11){
if(_11.match(/^[a-zA-Z]$/)){
return true;
}
return false;
},getServerAddr:function(){
if(document.domain){
return ("http://"+document.domain);
}else{
return quillConfig.server.location;
}
},getServerPath:function(){
var _12=window.location.pathname.match(/.*\//g);
return ["http://",window.location.host,_12].join("");
},isValidAlpha:function(_13){
if(_13.match(/[a-zA-Z]+/)){
return true;
}
return false;
},getMeta:function(){
var d=document.getElementsByTagName("meta");
var ret={};
var i;
if(!d||!d.length){
logger.error("Could not read meta tags.");
}else{
for(i=0;i<d.length;i++){
if(d[i].name){
ret[d[i].name]=d[i].content;
}
}
}
return ret;
},makeURL:function(_17,req){
var _19="";
for(var i in req){
_19+=[i,"=",encodeURIComponent(req[i])].join("");
}
if(_19){
return [_17,"?",_19].join("");
}else{
return _17;
}
},setupLogging:function(){
try{
try{
if(console.log){
logger={log:console.log,debug:console.debug,info:console.info,warn:console.warn,error:console.error};
}
}
catch(e){
if(logDebug){
logger={log:log,debug:logDebug,info:logDebug,warn:logWarning,error:logError};
}
}
}
catch(e){
logger={log:function(){
},debug:function(){
},info:function(){
},warn:function(){
},error:function(){
}};
}
},setCharEncoding:function(_1b){
if(document.defaultCharset){
document.defaultCharset=_1b;
}
if(document.charset){
document.charset=_1b;
}
}};
getNodeText=function(){
var n=SPAN();
if(typeof (n.textContent)!=="undefined"){
return function(_1d){
return _1d.textContent;
};
}else{
if(typeof (n.innerText)!=="undefined"){
return function(_1e){
return _1e.innerText;
};
}else{
return function(_1f){
return _1f.text;
};
}
}
}();
setNodeText=function(){
var n=SPAN();
if(typeof (n.textContent)!=="undefined"){
return function(_21,_22){
_21.textContent=_22;
};
}else{
if(typeof (n.innerText)!=="undefined"){
return function(_23,_24){
_23.innerText=_24;
};
}else{
return function(_25,_26){
_25.text=_26;
};
}
}
}();
function getFontSize(){
if(quillConfig.fontSizes&&quillConfig.fontSizes.hasOwnProperty(QuillUtil.getLang())){
return quillConfig.fontSizes[QuillUtil.getLang()];
}else{
return ["12px","20px"];
}
}
function addStyleSheet(doc,url){
var _29=doc.createElement("LINK");
_29.rel="stylesheet";
_29.type="text/css";
_29.href=url;
var _2a=doc.getElementsByTagName("head")[0];
if(_2a){
_2a.appendChild(_29);
}else{
logger.error("addStyleSheet: document.head not found for",doc);
}
}
function enableLogPane(){
var _2b=getElement("logpane");
logger.info=function(){
var s="";
for(var i=0;i<arguments.length;i++){
s+=arguments[i]+" ";
}
_2b.appendChild(DIV(s));
if(_2b.scrollHeight>_2b.clientHeight){
_2b.scrollTop=_2b.scrollHeight-_2b.clientHeight;
}
};
}
function getCursorPosition(_2e){
var _2f;
if(typeof (_2e.selectionStart)!=="undefined"){
_2f=_2e.selectionEnd;
}else{
if(document.selection){
_2e.focus();
var sel=document.selection.createRange();
var _31=sel.duplicate();
_31.collapse(true);
var _32=_31.moveStart("character",-1000);
return -_32;
}
}
return _2f;
}
function setCursorPosition(_33,pos){
if(typeof (_33.selectionStart)!=="undefined"){
_33.selectionStart=pos;
_33.selectionEnd=pos;
}else{
if(document.selection){
_33.focus();
var _35=_33.createTextRange();
_35.collapse(true);
_35.moveStart("character",pos);
_35.moveEnd("character",pos);
_35.select();
}
}
}
iframePos=function(){
return elementPosition("indicOutput");
};

connect(window,"onload",function(){
var _1=getElement("email_from");
var _2=getElement("email_to");
var _3=getElement("email_replyto");
var _4=getElement("err_email_from");
var _5=getElement("err_email_to");
var _6=getElement("err_email_replyto");
function validate(_7,_8,_9,_a){
if(!_8(_7)){
_9.style.display="block";
_a.stop();
return false;
}else{
_9.style.display="none";
return true;
}
}
connect(getElement("bReset"),"onclick",function(_b){
_4.style.display="none";
_5.style.display="none";
_6.style.display="none";
});
connect(getElement("bSubmit"),"onclick",function(_c){
return validate(_1.value,function(v){
return !QuillUtil.isBlank(v);
},_4,_c)&&validate(_3.value,QuillUtil.isValidEmailID,_6,_c)&&validate(_2.value,QuillUtil.isValidEmailIDGroup,_5,_c);
});
});


