var FIXED_RESOLUTION_WIDTH=955;
var overlayViewsArray=new Array();
var anotheraction=0;
var _$=document;
function $(_1){
return ((typeof (_1)=="string")?_$.getElementById(_1):_1);
}
function validateEmail(_2,_3,_4,_5){
if(_2.length==0&&(typeof (_5))&&_5==0){
return true;
}
var _6=/^((([a-z]|[A-Z]|[0-9]|\-|_)+(\.([a-z]|[A-Z]|[0-9]|\-|_)+)*)@((((([a-z]|[A-Z]|[0-9])([a-z]|[A-Z]|[0-9]|\-){0,61}([a-z]|[A-Z]|[0-9])\.))*([a-z]|[A-Z]|[0-9])([a-z]|[A-Z]|[0-9]|\-){0,61}([a-z]|[A-Z]|[0-9])\.)[\w]{2,4}|(((([0-9]){1,3}\.){3}([0-9]){1,3}))|(\[((([0-9]){1,3}\.){3}([0-9]){1,3})\])))$/;
if(_2==""){
return "Please enter your "+_3+".";
}else{
if(!_6.test(_2)){
return "The "+_3+" specified is not correct.";
}
}
return true;
}
function clearMessages(_7,_8,_9){
_8=(typeof (_8)=="undefined")?false:_8;
_9=(typeof (_9)=="undefined")?false:_9;
for(var _a=0;_a<_7.elements.length;_a++){
var _b=_7.elements[_a];
if($(_b.id+"_error")){
$(_b.id+"_error").innerHTML="";
if(_8){
$(_b.id+"_error").parentNode.style.display="none";
}
if(_9){
_b.value="";
}
}
}
}
function setXHRHeaders(_c){
_c.setRequestHeader("Content-length",0);
_c.setRequestHeader("Connection","close");
}
var windowname=null;
function openwindow(_d){
var _e=screen.width*0.8;
var _f=screen.height*0.8;
var _10=(screen.width-_e)/2;
var _11=(screen.height-_f)/2;
var _12="width="+parseInt(screen.width*0.8);
_12+=",height="+parseInt(screen.height*0.8)+",left ="+_10+",top= "+_11;
_12+=",resizable=1,scrollbars=1,toolbar=1,status=1,location=1,directories=1,menubar=1,centerscreen=yes";
if(windowname){
windowname.close();
}
windowname=window.open(_d,"NaukriShiksha",_12);
return false;
}
function getXMLHTTPObject(){
var _13;
try{
_13=new XMLHttpRequest();
}
catch(e){
try{
_13=new ActiveXObject("Msxml2.XMLHTTP");
}
catch(e){
try{
_13=new ActiveXObject("Microsoft.XMLHTTP");
}
catch(e){
alert("Your browser does not support AJAX!");
return false;
}
}
}
return _13;
}
var footerExpandedElement=null;
function toggleMe(obj){
var doc=document;
if(obj.className.indexOf("ftrPSgn")>-1){
doc.getElementById(obj.id.replace("Sign","Container")).style.display="";
obj.className="ftrMSgn";
if(footerExpandedElement!=null){
doc.getElementById(footerExpandedElement.id.replace("Sign","Container")).style.display="none";
footerExpandedElement.className="ftrPSgn";
}
footerExpandedElement=obj;
}else{
doc.getElementById(obj.id.replace("Sign","Container")).style.display="none";
obj.className="ftrPSgn";
footerExpandedElement=null;
}
}
function trim(str){
try{
if(str&&typeof (str)=="string"){
return str.replace(/^\s*|\s*$/g,"");
}else{
return "";
}
}
catch(e){
return str;
}
}
function getJsonKeyForSearch(val){
return (val.replace(/[^a-zA-Z]*/g,"").toLowerCase());
}
function getCookie(_18){
if(document.cookie.length>0){
c_start=document.cookie.indexOf(_18+"=");
if(c_start!=-1){
c_start=c_start+_18.length+1;
c_end=document.cookie.indexOf(";",c_start);
if(c_end==-1){
c_end=document.cookie.length;
}
return unescape(document.cookie.substring(c_start,c_end));
}
}
return "";
}
function setCookie(_19,_1a,_1b,_1c){
var _1d=new Date();
_1d.setTime(_1d.getTime());
var _1e=0;
_1b=(typeof (_1b)!="undefined")?_1b:0;
_1c=(typeof (_1c)!="undefined")?_1c:"days";
if(_1b!=0){
if(_1c=="seconds"){
_1b=_1b*1000;
}else{
_1b=_1b*1000*60*60*24;
}
var _1f=new Date(_1d.getTime()+(_1b));
var _1e=_1f.toGMTString();
document.cookie=_19+"="+escape(_1a)+";path=/;domain="+COOKIEDOMAIN+""+((_1b==null)?"":";expires="+_1e);
}else{
document.cookie=_19+"="+escape(_1a)+";path=/;domain="+COOKIEDOMAIN;
}
if(document.cookie==""){
return false;
}
return true;
}
function setClientCookie(){
try{
if(getCookie("client")==""||getCookie("client")==null||document.body.offsetWidth!=getCookie("client")){
if(getCookie("client")!=""&&getCookie("client")!=document.body.offsetWidth&&document.body.offsetWidth>1000&&getCookie("client")<800){
setCookie("client",document.body.offsetWidth,300);
}else{
if(getCookie("client")!=document.body.offsetWidth&&document.body.offsetWidth<1000&&getCookie("client")>1000){
setCookie("client",document.body.offsetWidth,300);
}else{
setCookie("client",document.body.offsetWidth,300);
}
}
if(getCookie("client")==""){
$("enableCookieMsg").style.display="";
$("enableCookieMsg").innerHTML="Cookies are not getting set in your browser! Please Check.";
}
}
}
catch(e){
}
}
function showSubcategories1(_20,_21){
var _22=$("subcategoryDiv1");
_22.style.display="block";
if(_20){
_20=$(_20);
_22.style.top=obtainPostitionY(_20)+"px";
_22.style.left=obtainPostitionX(_20)+(_20.offsetWidth-2)+"px";
if(_21){
var _23=_20.getAttribute("url");
var url=_20.getAttribute("href");
$("subcategoryDivContent1").innerHTML=getSubCategories1(url,_21,_23);
}
}
}
function hideSubcategoties(_25){
_25="subcategoryDiv";
$(_25).style.display="none";
}
function getSubCategories1(url,id,_28){
var _29="";
var _2a="";
if(url.indexOf("getCategoryPage/colleges")<0){
url+="getCategoryPage/colleges";
}
if(url.indexOf("//"+_28)>0){
url+="/"+_28;
}
for(var _2b=0;_2b<categoryList.length;_2b++){
if(id==categoryList[_2b].parentId){
var _2c=url+"/india/All/"+categoryList[_2b].urlName;
var _2d="<div style=\"margin:5px;\" class=\"quesAnsBullets\"><a href=\""+_2c+"\" title=\""+categoryList[_2b].categoryName+"\">"+categoryList[_2b].categoryName+"</a></div>";
if(categoryList[_2b].categoryName.toLowerCase().indexOf("other")==0){
_2a+=_2d;
}else{
_29+=_2d;
}
}
}
_2a=_29+_2a;
return _2a;
}
function obtainPostitionX(_2e){
var x=0;
while(_2e){
x+=_2e.offsetLeft;
_2e=_2e.offsetParent;
}
return x;
}
function obtainPostitionY(_30){
var y=0;
while(_30){
y+=_30.offsetTop;
_30=_30.offsetParent;
}
return y;
}
function openSubDiv(_32,_33){
$("careerOption").style.visibility="hidden";
$("eventTypes").style.visibility="hidden";
$("countryOption").style.visibility="hidden";
$("countries").style.visibility="hidden";
$("testPreparation").style.visibility="hidden";
$("importantDeadlines").style.visibility="hidden";
$("impDeadlines").style.visibility="hidden";
$("eventCategories").style.visibility="hidden";
$("eventCountries").style.visibility="hidden";
var _34=$(_32.id);
var _35=$(_33);
var _36=obtainPostitionY(_34);
var _37=obtainPostitionX(_34);
var _38=_34.offsetWidth;
_35.style.visibility="visible";
_35.style.left=(_37+_38+1)+"px";
_35.style.top=_36+"px";
_35.style.zIndex=500;
setTimeout("overlayHackLayerForIE(\""+_33+"\", $(\""+_33+"\"));",1);
}
function drpdwnOpen(_39,_3a){
MM_showHideLayers("careerOption","","","hide");
MM_showHideLayers("eventTypes","","","hide");
MM_showHideLayers("countryOption","","","hide");
MM_showHideLayers("countries","","","hide");
MM_showHideLayers("testPreparation","","","hide");
MM_showHideLayers("importantDeadlines","","","hide");
MM_showHideLayers("impDeadlines","","","hide");
MM_showHideLayers("eventCategories","","","hide");
MM_showHideLayers("eventCountries","","","hide");
var _3b=_39;
var _3c=$(_3a);
var _3d=obtainPostitionY(_3b);
var _3e=obtainPostitionX(_3b);
var _3f=_3b.offsetHeight;
_3c.style.left=_3e-1+"px";
_3c.style.top=(_3d+_3f-3)+"px";
_3c.style.display="block";
if((_3e+$(_3a).offsetWidth)>screen.width){
_3e=screen.width-$(_3a).offsetWidth-50;
}
_3c.style.zIndex=1500;
_3c.style.left=_3e-1+"px";
setTimeout("overlayHackLayerForIE(\""+_3a+"\", $(\""+_3a+"\"));",1);
}
function defaultTab(_40){
var _41=$(_40);
var _42=$("careerOption");
_42.style.visibility="hidden";
_41.className="";
objImg=_41.getElementsByTagName("img");
objImg[0].src="/public/images/mainNavigationArrowWht.gif";
}
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_showHideLayers(){
var i,p,v,obj,_4c=MM_showHideLayers.arguments;
for(i=0;i<(_4c.length-2);i+=3){
if((obj=MM_findObj(_4c[i]))!=null){
v=_4c[i+2];
if(obj.style){
obj=obj.style;
v=(v=="show")?"block":"none";
}
obj.display=v;
v=="block"&&_4c[0]!="drpDown"?overlayHackLayerForIE(_4c[0],$(_4c[0])):dissolveOverlayHackForIE();
}
}
}
function overlayHackLayerForIE(_4d,_4e){
overlayHackForIE(_4d,_4e);
}
function overlayHackForIE(_4f,_50){
var _51=$("iframe_div");
if(_51!=null){
var _52=_51.style;
if(_51.getAttribute("container")!=""&&_51.getAttribute("container")!=_4f&&_52.display!="none"){
dissolveOverlayHackForIE();
}
_51.setAttribute("container",_4f);
_51.container=_4f;
_52.display="block";
_52.width=_50.offsetWidth+"px";
_52.height=_50.offsetHeight+"px";
_52.top=obtainPostitionY(_50)+"px";
_52.left=obtainPostitionX(_50)+"px";
if($(_4f).style.zIndex!=0||$(_4f).style.zIndex!=""){
_52.zIndex=parseInt($(_4f).style.zIndex)-1;
}else{
_52.zIndex=1000;
}
}
}
function dissolveOverlayHackForIE(){
if($("iframe_div")){
try{
if($($("iframe_div").getAttribute("container"))){
$($("iframe_div").getAttribute("container")).style.display="none";
}
}
catch(e){
}
$("iframe_div").style.display="none";
}
}
var bannerPool=new Array();
function pushBannerToPool(_53,_54){
if(_53!=""){
bannerPool[_53]=_54;
}
}
function checkTextElementOnTransition(_55,_56){
var _57=trim(_55.getAttribute("default"));
if(_57==null){
return false;
}
if(_56=="focus"){
_55.style.color="";
if(trim(_55.value)==_57){
if(_55.type.toLowerCase()=="password"){
_55.className=_55.className.replace("passwordTxt","");
return;
}
_55.value="";
}
}else{
if(trim(_55.value)==""){
if(_55.type.toLowerCase()=="password"){
_55.className+=" passwordTxt";
return;
}
_55.value=_57;
_55.style.color="#ada6ad";
}
}
}
function validateLoginForHeader(_58){
if((_58.password_header.value=="")||(_58.username_header.value=="")||_58.username_header.getAttribute("default")==_58.username_header.value){
return false;
}
var _59=$("username_header");
var _5a=$("password_header");
_59.className=_59.className.replace("error_box","");
_5a.className=_5a.className.replace("error_box","");
clearMessages(_58,true);
var _5b=validateEmail(_58.username_header.value,"email address",125,10);
if(_5b!=true){
_59.className+=" error_box";
_5a.className+=" error_box";
showCommonInlineErrorMessage("username_header",_5b);
}else{
$("mpassword_header").value=hex_md5($("password_header").value);
}
return true;
}
function showCommonInlineErrorMessage(_5c,_5d){
if($(_5c+"_error")){
$(_5c+"_error").parentNode.style.display="inline";
$(_5c+"_error").innerHTML=_5d;
}
return;
}
function showLoginResponseForHeader(str){
var _5f=$("username_header");
var _60=$("password_header");
_5f.className=_5f.className.replace("error_box","");
_60.className=_60.className.replace("error_box","");
var _61;
if(str==0){
_61="Incorrect account details. Please enter Login Email Id & Password again.";
}
if(str=="invalid"){
_61="The login email you have provided is not valid. This account has been disabled.";
}
if(str==0||str=="invalid"){
_5f.className+=" error_box";
_60.className+=" error_box";
showErrorMessageForAnAReg("username_header",_61);
return false;
}
if(Number(str)>0){
window.location.reload();
}
return;
}
function selectTab(_62,_63,_64,_65){
var _66=getElementsByAttributeName(_62.parentNode,"tab");
var _67=$(_63);
var _68=getElementsByAttributeName(_67.parentNode,"tabContent");
for(var _69=0,tab;tab=_66[_69];_69++){
tab.className=tab.className.replace(_64,"").concat(" "+_65);
_68[_69].style.display="none";
}
_62.className=_62.className.replace(_65,"").concat(" "+_64);
_67.style.display="";
return false;
}
function getElementsByAttributeName(_6b,_6c,_6d){
var _6e,_6f,_70=new Array(),_71=0;
if(_6d){
_6e=_6b.getElementsByTagName(_6d);
}else{
_6e=_6b.childNodes;
}
while(_6f=_6e[_71++]){
if(_6f&&_6f.nodeType==1&&_6f.getAttribute(_6c)){
_70.push(_6f);
}
}
return _70;
}
function glider(_72,_73,_74,_75){
this.gliderCodeRunning=0;
this.noOfInterval=(typeof (_74)=="undefined")?10:_74;
this.timeForGliding=(typeof (_75)=="undefined")?500:_75;
try{
var _76=this.getFirstLevelChilds(_72);
var _77=_76[0].offsetWidth;
_72.parentNode.style.width=_77+"px";
for(var i=0;i<_76.length;i++){
_76[i].style.width=_77+"px";
_76[i].innerHTML+="&nbsp;";
if(i==_73){
this.changeFirstDivChild(_76[i],"");
}else{
this.changeFirstDivChild(_76[i],"none");
}
}
_72.style.width=((_76.length*_77)+50)+"px";
_72.style.left=(Number(_73)*Number(_77)*(-1))+"px";
}
catch(e){
}
return;
}
glider.prototype.setWidthOfParentDiv=function(_79,_7a,_7b){
var _7c=this.getFirstLevelChilds(_79);
_79.style.width=(((_7c.length+_7b)*_7a)+50)+"px";
return;
};
glider.prototype.setLeftPosition=function(_7d,_7e,_7f,_80){
if((_7e<0)&&(_7f<0)){
_7d.style.left=(_7f*_80)+"px";
}
if((_7e>0)&&(_7f<0)){
_7d.style.left=(-(_7d.offsetWidth-_80-50))+"px";
}
return;
};
glider.prototype.checkLimits=function(_81,_82,_83){
var _84=false;
if(((this.getNumVal(_81.style.width)-50)==Math.abs(this.getNumVal(_81.style.left)-Number(_83)))&&(_82>0)){
_84="upper";
}else{
if((this.getNumVal(_81.style.left)==0)&&(_82<0)){
_84="lower";
}
}
return _84;
};
glider.prototype.getNumVal=function(_85){
return Number(_85.substring(0,(_85.length-2)));
};
glider.prototype.slideIt=function(_86,_87,_88,_89){
if(this.gliderCodeRunning==1){
return false;
}
var _8a=$(_86);
var _89=(typeof (_89)=="undefined")?0:_89;
var _8b=this.getFirstLevelChilds(_8a);
var _8c=_8b[0].offsetWidth;
this.setLeftPosition(_8a,_87,_89,_8c);
var _8d=_8a.getAttribute("currentShownDiv");
var _8e=$(_86+_8d);
_8d=parseInt(_8d)+_87;
var _8f=this.checkLimits(_8a,_87,_8c);
if(_8f!=false){
if(!_88){
return false;
}else{
if(_8f=="upper"){
this.changeFirstDivChild(_8b[0],"");
_8a.style.left="0px";
this.changeFirstDivChild(_8b[_8b.length-1],"none");
var _90=_8b[0].getAttribute("divNumber");
}else{
this.changeFirstDivChild(_8b[_8b.length-1],"");
_8a.style.left=-(gliderObject.getNumVal(_8a.style.width)-_8c-50)+"px";
this.changeFirstDivChild(_8b[0],"none");
var _90=_8b[_8b.length-1].getAttribute("divNumber");
}
_8a.setAttribute("currentShownDiv",_90);
return false;
}
}
_8a.setAttribute("currentShownDiv",_8d);
this.changeFirstDivChild($(_86+_8d),"");
this.gliderCodeRunning=1;
this.alterWithInterval(_8a,_8e,_87);
return;
};
glider.prototype.changeFirstDivChild=function(_91,_92){
_91.getElementsByTagName("div")[0].style.display=_92;
return;
};
glider.prototype.alterWithInterval=function(_93,_94,_95){
var _96=this.getNumVal(_94.style.width);
var _97=(_96/this.noOfInterval)*_95;
var _98=this.getNumVal(_93.style.left);
var _99=_98-(_96*_95);
var _9a=this;
var _9b=0;
var _9c=setInterval(function(){
_98=_98-_97;
_93.style.left=(_98)+"px";
_9b++;
if(_9b>=_9a.noOfInterval){
_93.style.left=(_99)+"px";
clearInterval(_9c);
_9a.gliderCodeRunning=0;
_9a.changeFirstDivChild(_94,"none");
}
},(_9a.timeForGliding/_9a.noOfInterval));
return;
};
glider.prototype.getFirstLevelChilds=function(_9d){
var _9e=_9d.childNodes;
var _9f=_9d.id;
var _a0=new Array();
for(var i=0;i<_9e.length;i++){
if((_9e[i].nodeType==1)&&(_9e[i].id.indexOf(_9f)!=-1)){
_a0.push(_9e[i]);
}
}
return _a0;
};
function hideOverlay(_a2){
_a2=(typeof (_a2)!="undefined")?_a2:true;
if(typeof isUserLoggedIn!="undefined"&&!isUserLoggedIn&&getCookie("user")!=""&&(anotheraction==0)&&(_a2)){
window.location.reload();
}else{
dissolveOverlayHackForIE();
$("genOverlay").style.display="none";
$("dim_bg").style.display="none";
$("overlayCloseCross").className="";
if(($("genOverlayContents").innerHTML!="")&&(overlayParent)){
if(typeof (overlayContent)!="undefined"){
overlayParent.innerHTML=overlayContent;
}else{
overlayParent.innerHTML=$("genOverlayContents").innerHTML;
}
}
$("genOverlayContents").innerHTML="";
}
}
var h=document.documentElement.scrollTop;
function setScroll(x,y){
h=document.documentElement.scrollTop;
window.scrollTo(x,y);
window.onscroll=function(){
h=document.documentElement.scrollTop;
window.scrollTo(x,y);
};
}
function setNoScroll(){
window.scrollTo(0,h);
window.onscroll=function(){
};
}
var overlayParent;
function showOverlay(_a5,_a6,_a7,_a8,_a9,_aa,top){
if(trim(_a8)==""){
return false;
}
var _ac=document.getElementsByTagName("body")[0];
$("overlayTitle").innerHTML=_a7;
if(trim(_a7)==""){
$("overlayTitle").parentNode.style.display="none";
}else{
$("overlayTitle").parentNode.style.display="";
}
$("genOverlay").style.width=_a5+"px";
$("genOverlay").style.height=_a6+"px";
$("genOverlayContents").innerHTML=_a8;
var _ad=parseInt(screen.height)/2;
var _ae;
if(typeof _aa!="undefined"){
_ae=_aa;
}else{
_ae=(parseInt(_ac.offsetWidth)/2)-(_a5/2);
}
if(typeof top!="undefined"){
_ad=top;
}else{
_ad=parseInt(_ad-parseInt(_a6/2))-70;
}
h=document.body.scrollTop;
var h1=document.documentElement.scrollTop;
h=h1>h?h1:h;
_ad=_ad+h;
if(typeof _a9=="undefined"||_a9===false){
$("dim_bg").style.height=_ac.scrollHeight+"px";
$("dim_bg").style.display="inline";
if($("dim_bg").offsetWidth<_ac.offsetWidth){
$("dim_bg").style.width=_ac.offsetWidth+"px";
}
}
if($("genOverlay").scrollHeight<_ac.offsetHeight){
$("genOverlay").style.left=_ae+"px";
$("genOverlay").style.top=_ad+"px";
}else{
$("genOverlay").style.left=_ae+"px";
$("genOverlay").style.top="100px";
$("dim_bg").style.height=($("genOverlay").scrollHeight+100)+"px";
window.scrollTo(_ae,"100");
}
overlayHackLayerForIE("genOverlay",_ac);
$("overlayCloseCross").className="cssSprite1 allShikCloseBtn";
$("genOverlay").style.display="inline";
}
if(typeof autoCompleteFlag=="undefined"){
var Ajax={getParams:function(_b0,_b1){
if(_b0==null||typeof _b0=="undefined"){
return null;
}
var _b2=_b0.split("&");
var _b3=null;
if(_b2!=null){
for(var _b4=0;_b4<_b2.length;_b4++){
var _b5=_b2[_b4].split("=");
_b3=_b3==null?"":_b3;
var _b6=_b5[1];
if(trim(_b5[1]).split(" ").length!=1){
var _b6=encodeURIComponent(_b5[1]);
}
_b3+=_b3==""?_b5[0]+"="+_b6:"&"+_b5[0]+"="+_b6;
}
}
_b1.setRequestHeader("Content-type","application/x-www-form-urlencoded");
_b1.setRequestHeader("Content-length",_b3.length);
_b1.setRequestHeader("Connection","close");
return _b3;
},Request:function(url,_b8){
if(_b8!=null&&typeof _b8!="undefined"){
if(typeof (_b8["onBeforeAjax"])!="undefined"){
_b8["onBeforeAjax"].call(this,_b9);
}
}
var _b9=getXMLHTTPObject();
_b9.onreadystatechange=function(){
if(_b9.readyState==4){
if(_b8!=null&&typeof _b8!="undefined"){
if(typeof (_b8["onComplete"])!="undefined"&&_b8["onComplete"]!=null){
try{
_b8["onComplete"].apply(this,_b9);
}
catch(e){
_b8["onComplete"].call();
}
}
if(typeof (_b8["onSuccess"])=="undefined"||_b8["onSuccess"]==null){
_b8["onSuccess"]=new function(){
return true;
};
}
if(typeof (_b8["onFailure"])=="undefined"||_b8["onFailure"]==null){
_b8["onFailure"]=new function(){
return false;
};
}
}
try{
(_b9.status==200)?_b8["onSuccess"].call(this,_b9):_b8["onFailure"].call(this,_b9);
}
catch(e){
}
}
};
var _ba=null;
if(_b8!=null&&typeof _b8!="undefined"){
_ba=_b8.method;
}
_ba=_ba!=null?_ba:"POST";
_b9.open(_ba,url,true);
var _bb=typeof _b8=="undefined"||_b8==null||typeof _b8.parameters=="undefined"?null:Ajax.getParams(_b8.parameters,_b9);
_b9.send(_bb);
},Updater:function(_bc,url,_be){
if(_be!=null&&typeof _be!="undefined"){
if(typeof (_be["onBeforeAjax"])!="undefined"){
_be["onBeforeAjax"].call(this,_bf);
}
}
var _bf=getXMLHTTPObject();
_bf.onreadystatechange=function(){
if(_bf.readyState==4){
try{
if(_bf.status==200){
$(_bc).innerHTML=_bf.responseText;
if(typeof (_be["onSuccess"])!="undefined"&&_be["onSuccess"]!=null){
_be["onSuccess"].call(this,_bf);
}
if(typeof (_be["onFailure"])!="undefined"&&_be["onFailure"]!=null){
_be["onFailure"].call(this,_bf);
}
}
}
catch(e){
}
if(_be!=null&&typeof _be!="undefined"){
if(typeof (_be["onComplete"])!="undefined"&&_be["onComplete"]!=null){
_be["onComplete"].apply(this,this.xmlHttp);
}
}
return true;
}
};
var _c0=null;
if(_be!=null&&typeof _be!="undefined"){
_c0=_be.method;
}
_c0=_c0!=null?_c0:"POST";
_bf.open(_c0,url,true);
var _c1=typeof _be=="undefined"||_be==null||typeof _be.parameters=="undefined"?null:Ajax.getParams(_be.parameters,_bf);
_bf.send(_c1);
}};
Object.extend=function(_c2,_c3){
for(var _c4 in _c3){
_c2[_c4]=_c3[_c4];
}
return _c2;
};
Object.extend(Object,{isString:function(_c5){
return typeof _c5=="string";
}});
var Form={reset:function(_c6){
$(_c6).reset();
return _c6;
},serialize:function(_c7){
if(typeof _c7=="string"){
_c7=$(_c7);
}
var _c8=_c7.elements;
var _c9="";
for(var _ca=0,_cb;_cb=_c8[_ca];_ca++){
if(_cb.name==null||_cb.name==""){
continue;
}
if((_cb.type=="radio"||_cb.type=="checkbox")&&(!_cb.checked)){
continue;
}
if(_c9!=""){
_c9+="&";
}
_c9+=_cb.name+"="+encodeURIComponent(_cb.value);
}
return _c9;
}};
}
function getEducationLevel(id,Edu,_ce,_cf){
var _d0=$(id);
_ce=!_ce?false:_ce;
if(createEduDropDown(EduList["2"],_d0,_ce,Edu,_cf)){
}
}
function getCitiesForCountryForEvent(_d1,_d2,_d3,_d4){
if((typeof (_d3)!="undefined")&&(trim(_d3)!="")){
var _d5=$("cities"+_d3);
var _d6=$("country"+_d3).value;
}else{
_d3="";
var _d5=$("cities");
var _d6=$("country").value;
}
var _d7=document.getElementById("countryAssoc");
if(document.getElementById("event_id").value==""){
_d7.value=_d6;
}
if(typeof (_d1)=="undefined"){
_d1=_d5.value;
}
_d2=!_d2?false:_d2;
_d4=_d4=="undefined"?true:_d4;
var _d8=_d5.getAttribute("unrestricted");
if(_d8!==null){
var _d9=unRestrictedCityList[_d6];
}else{
var _d9=cityList[_d6];
}
if(createCityDropDown(_d9,_d5,_d2,_d4)){
if(_d1==""){
_d1=_d5.value;
}
selectComboBox(_d5,_d1);
checkCity(_d5,"checkInstitute",_d1,_d3);
}
}
function getCitiesForCountry(_da,_db,_dc,_dd){
if((typeof (_dc)!="undefined")&&(trim(_dc)!="")){
var _de=$("cities"+_dc);
var _df=$("country"+_dc).value;
}else{
_dc="";
var _de=$("cities");
var _df=$("country").value;
}
if(typeof (_da)=="undefined"){
_da=_de.value;
}
_db=!_db?false:_db;
_dd=_dd=="undefined"?true:_dd;
var _e0=_de.getAttribute("unrestricted");
if(_e0!==null){
var _e1=unRestrictedCityList[_df];
}else{
var _e1=cityList[_df];
}
if(createCityDropDown(_e1,_de,_db,_dd)){
if(_da==""){
_da=_de.value;
}
selectComboBox(_de,_da);
checkCity(_de,"checkInstitute",_da,_dc);
}
}
function createEduDropDown(_e2,_e3,_e4,Edu,_e6){
var _e7=0;
if(_e2){
_e7=_e7.length;
}
_e3.innerHTML="";
var _e8=document.createElement("option");
_e8.value="";
if((_e4==true)||(_e4==1)){
_e8.innerHTML="Select";
_e8.title="Select";
}
_e3.appendChild(_e8);
if(_e6=="reqInfo"){
_e8=document.createElement("option");
_e8.innerHTML="School Student";
_e8.title="School";
_e8.value="School";
_e3.appendChild(_e8);
}
var i=0;
for(var Edu in _e2){
_e8=document.createElement("option");
_e8.value=Edu;
_e8.innerHTML=getSmString(_e2[Edu],30);
_e8.title=_e2[Edu];
_e3.appendChild(_e8);
i++;
}
var _ea="";
if(Edu!=""){
var _e8=document.createElement("option");
_e8.value="Other";
_e8.innerHTML="Other";
_e8.title="Other";
_e3.appendChild(_e8);
_ea=$(Edu);
}
_e3.style.display="inline";
return true;
}
function checkInstitute(_eb,_ec,_ed){
var _ee="courses";
if((typeof (_ed)!="undefined")&&(trim(_ed)!="")){
_ee="courses"+_ed;
}
if(!_eb){
return false;
}
var _ef=$(_eb.id+"_other");
if(_eb.value=="-1"){
showElement(_ef);
}else{
hideElement(_ef);
}
getCoursesForInstitute(_ed);
if((typeof (_ec)!="undefined")&&(_ec!="")){
if(_eb){
eval(_ec+"(\""+_eb.value+"\",\""+_ee+"\")");
}else{
eval(_ec+"("+_eb.value+")");
}
}
}
function getInstitutesForCity(_f0){
var _f1="colleges";
var _f2="cities";
if((typeof (_f0)!="undefined")&&(trim(_f0)!="")){
_f1="colleges"+_f0;
_f2="cities"+_f0;
}
if($(_f1)){
var _f3=$(_f1);
var _f4=$(_f2).value;
var _f5=getXMLHTTPObject();
_f5.onreadystatechange=function(){
if(_f5.readyState==4){
var _f6=eval("eval("+_f5.responseText+")");
if(createInstituteDropDown(_f6,_f3)){
checkInstitute(_f3,"updateInstitutes",_f0);
}else{
checkInstitute(_f3,"updateInstitutes",_f0);
}
}
};
if(_f4==""){
return false;
}
var url="/rating/Rating/getInstitutesForCity/1/"+_f4+"/"+randNum();
_f5.open("POST",url,true);
_f5.setRequestHeader("Content-length",0);
_f5.setRequestHeader("Connection","close");
_f5.send(null);
}
}
function checkCity(_f8,_f9,_fa,_fb){
var _fc="country";
var _fd;
if((typeof (_fb)!="undefined")&&(trim(_fb)!="")){
_fc="country"+_fb;
}
var _fe=$(_f8.id+"_other");
if(_fe){
_fe.value="";
if(_f8.value==-1){
showElement(_fe);
_fd=_fe.value;
}else{
hideElement(_fe);
_fd=_f8[_f8.selectedIndex].text;
}
}else{
_fd=_f8[_f8.selectedIndex].text;
}
if(_fa==""){
_fa=_f8.value;
}
if((typeof (_fa)!="undefined")&&(_fa!="")){
createLocationCrumb($(_fc),_fd,_fa,_f8);
}
getInstitutesForCity(_fb);
if(typeof (_f9)!="undefined"&&_f9!=""){
var _ff=_f9+"("+_f8.value+")";
eval(_ff);
}
}
function selectComboBox(_100,_101){
try{
for(var i=0;i<_100.options.length;i++){
_100.options[i].removeAttribute("selected");
if(_100.options[i].value==_101){
_100.options[i].setAttribute("selected",true);
_100.options[i].selected=true;
}
}
}
catch(e){
}
return true;
}
function getSmString(str,len){
if(str.length>len){
return str.substring(0,len-3)+"...";
}else{
return str;
}
}
function createCityDropDown(_105,_106,_107,_108){
var _109=0;
if(_105){
_109=_105.length;
}
_106.innerHTML="";
var _10a=document.createElement("option");
_10a.value="";
if((_107==true)||(_107==1)){
_10a.innerHTML="All Cities";
_10a.title="All Cities";
}else{
_10a.innerHTML="Select City";
_10a.title="Select City";
}
_106.appendChild(_10a);
for(var city in _105){
_10a=document.createElement("option");
_10a.value=city;
_10a.innerHTML=getSmString(_105[city],30);
_10a.title=_105[city];
_106.appendChild(_10a);
}
if(!_107&&_108==true){
var _10a=document.createElement("option");
_10a.value=-1;
_10a.innerHTML="Other";
_10a.title="Other";
_106.appendChild(_10a);
}
var _10c=$(_106.id+"_other");
if(_109===0){
_106.style.display="none";
if(_10c){
_10c.style.display="inline";
}
updateInstitutes(-1,_106.id);
return false;
}else{
_106.style.display="inline";
if(_10c){
_10c.style.display="none";
}
return true;
}
}
function checkViewDDs(_10d){
if($("countOffset_DD1")){
if(parseInt($("countOffset_DD1").options[0].value)>=_10d){
if($("countOffset_DD1")){
$("countOffset_DD1").parentNode.style.display="none";
}
if($("countOffset_DD2")){
$("countOffset_DD2").parentNode.style.display="none";
}
}else{
if($("countOffset_DD1")){
$("countOffset_DD1").parentNode.style.display="inline";
}
if($("countOffset_DD2")){
$("countOffset_DD2").parentNode.style.display="inline";
}
}
}
}
function doPagination(_10e,_10f,_110,_111,_112,_113,_114){
checkViewDDs(_10e);
if(!_114){
_114=10;
}
_10f=typeof (_10f)!="undefined"?_10f:"startOffSet";
_110=typeof (_110)!="undefined"?_110:"countOffset";
count=_110;
_111=typeof (_111)!="undefined"?_111:"paginataionPlace1";
_112=typeof (_112)!="undefined"?_112:"paginataionPlace2";
_113=typeof (_113)!="undefined"?_113:"methodName";
_110=parseInt($(_110).value);
if(_110<1){
_110=15;
}
var _115=parseInt($(_10f).value);
var _116=getPaginationHtml(_10e,_10f,_110,_115,_113,_114);
if($(_111)){
$(_111).innerHTML=_116;
}
if($(_112)){
$(_112).innerHTML=_116;
}
}
function getPageNumbers(_117,_118,_119,_11a,_11b){
var _11c="";
var _11d=_117>=_119/2?(_117-Math.floor(_119/2)):0;
if(_11d+_119>_118){
_11d=(_118-_119);
}
if(_11d<0){
_11d=0;
}
for(;0<_119;_119--,_11d++){
if(_118<_11d+1){
break;
}
if(_117==_11d){
_11c+="<a href=\"#\" class=\"show\" onclick=\"return false;\">"+(_11d+1)+"</a> ";
}else{
_11c+="<a href=\"#\" onClick=\"return updateStartOffset("+(_11d)+",'"+_11a+"','"+count+"','"+_11b+"')\">"+(_11d+1)+"</a> ";
}
}
return _11c;
}
function getPaginationHtml(_11e,_11f,_120,_121,_122,_123){
var _124="";
var _125=Math.ceil(_11e/_120);
var _126=Math.ceil(_121/_120);
var _127="<span id=\"pageNumbers\">";
_127+=getPageNumbers(_126,_125,_123,_11f,_122);
_127+="</span>";
if(_125<1){
}else{
if(_125==1){
}else{
_124+="<span class=\"normaltxt_11p_blk fontSize_12p\"> &nbsp;</span>";
if(_126==0){
}else{
_124+="<a href=\"#\" onClick=\"return updateStartOffset("+(parseInt(_126)-1)+",'"+_11f+"','"+count+"','"+_122+"')\">Prev</a>";
}
_124+=_127;
if(_126==_125-1){
}else{
_124+="<a href=\"#\" onClick=\"return updateStartOffset("+(parseInt(_126)+1)+",'"+_11f+"','"+count+"','"+_122+"')\">Next</a>";
}
}
}
return _124;
}
function updateStartOffset(_128,_129,_12a,_12b,_12c){
_12c=(typeof (_12c)=="undefined")?true:_12c;
setStartOffset(_128,_129,_12a);
if(_12c){
changePage(_12b);
}
return false;
}
function setStartOffset(_12d,_12e,_12f){
_12e=typeof (_12e)!="undefined"?_12e:"startOffSet";
_12f=typeof (_12f)!="undefined"?_12f:"countOffset";
$(_12e).value=(parseInt(_12d)*parseInt($(_12f).value));
}
function updateCountOffset(_130,_131,_132,_133,_134){
_131=(typeof (_131)=="undefined")?"startOffSet":_131;
_132=(typeof (_132)=="undefined")?"countOffset":_132;
_134=(typeof (_134)=="undefined")?true:_134;
var _135=parseInt($(_132).value);
var _136=parseInt($(_131).value);
$(_132).value=_130.value;
selectComboBox($("countOffset_DD1"),_130.value);
selectComboBox($("countOffset_DD2"),_130.value);
if(_136==0||_136<_130.value){
updateStartOffset(0,_131,_132,_133,_134);
}else{
updateStartOffset(Math.floor(_136/_130.value),_131,_132,_133,_134);
}
}
function changePage(_137){
var _137=typeof (_137)!="undefined"?_137:"methodName";
var _138=$(_137).value;
window[_138]();
}
function updatePaginationMethodName(_139,_13a){
_13a=typeof (_13a)!="undefined"?_13a:"methodName";
$(_13a).value=_139;
}
var hexcase=0;
var b64pad="";
var chrsz=8;
function hex_md5(s){
return binl2hex(core_md5(str2binl(s),s.length*chrsz));
}
function binl2hex(_4c){
var _4d=hexcase?"0123456789ABCDEF":"0123456789abcdef";
var str="";
for(var i=0;i<_4c.length*4;i++){
str+=_4d.charAt((_4c[i>>2]>>((i%4)*8+4))&15)+_4d.charAt((_4c[i>>2]>>((i%4)*8))&15);
}
return str;
}
function core_md5(x,_b){
x[_b>>5]|=128<<((_b)%32);
x[(((_b+64)>>>9)<<4)+14]=_b;
var a=1732584193;
var b=-271733879;
var c=-1732584194;
var d=271733878;
for(var i=0;i<x.length;i+=16){
var _11=a;
var _12=b;
var _13=c;
var _14=d;
a=md5_ff(a,b,c,d,x[i+0],7,-680876936);
d=md5_ff(d,a,b,c,x[i+1],12,-389564586);
c=md5_ff(c,d,a,b,x[i+2],17,606105819);
b=md5_ff(b,c,d,a,x[i+3],22,-1044525330);
a=md5_ff(a,b,c,d,x[i+4],7,-176418897);
d=md5_ff(d,a,b,c,x[i+5],12,1200080426);
c=md5_ff(c,d,a,b,x[i+6],17,-1473231341);
b=md5_ff(b,c,d,a,x[i+7],22,-45705983);
a=md5_ff(a,b,c,d,x[i+8],7,1770035416);
d=md5_ff(d,a,b,c,x[i+9],12,-1958414417);
c=md5_ff(c,d,a,b,x[i+10],17,-42063);
b=md5_ff(b,c,d,a,x[i+11],22,-1990404162);
a=md5_ff(a,b,c,d,x[i+12],7,1804603682);
d=md5_ff(d,a,b,c,x[i+13],12,-40341101);
c=md5_ff(c,d,a,b,x[i+14],17,-1502002290);
b=md5_ff(b,c,d,a,x[i+15],22,1236535329);
a=md5_gg(a,b,c,d,x[i+1],5,-165796510);
d=md5_gg(d,a,b,c,x[i+6],9,-1069501632);
c=md5_gg(c,d,a,b,x[i+11],14,643717713);
b=md5_gg(b,c,d,a,x[i+0],20,-373897302);
a=md5_gg(a,b,c,d,x[i+5],5,-701558691);
d=md5_gg(d,a,b,c,x[i+10],9,38016083);
c=md5_gg(c,d,a,b,x[i+15],14,-660478335);
b=md5_gg(b,c,d,a,x[i+4],20,-405537848);
a=md5_gg(a,b,c,d,x[i+9],5,568446438);
d=md5_gg(d,a,b,c,x[i+14],9,-1019803690);
c=md5_gg(c,d,a,b,x[i+3],14,-187363961);
b=md5_gg(b,c,d,a,x[i+8],20,1163531501);
a=md5_gg(a,b,c,d,x[i+13],5,-1444681467);
d=md5_gg(d,a,b,c,x[i+2],9,-51403784);
c=md5_gg(c,d,a,b,x[i+7],14,1735328473);
b=md5_gg(b,c,d,a,x[i+12],20,-1926607734);
a=md5_hh(a,b,c,d,x[i+5],4,-378558);
d=md5_hh(d,a,b,c,x[i+8],11,-2022574463);
c=md5_hh(c,d,a,b,x[i+11],16,1839030562);
b=md5_hh(b,c,d,a,x[i+14],23,-35309556);
a=md5_hh(a,b,c,d,x[i+1],4,-1530992060);
d=md5_hh(d,a,b,c,x[i+4],11,1272893353);
c=md5_hh(c,d,a,b,x[i+7],16,-155497632);
b=md5_hh(b,c,d,a,x[i+10],23,-1094730640);
a=md5_hh(a,b,c,d,x[i+13],4,681279174);
d=md5_hh(d,a,b,c,x[i+0],11,-358537222);
c=md5_hh(c,d,a,b,x[i+3],16,-722521979);
b=md5_hh(b,c,d,a,x[i+6],23,76029189);
a=md5_hh(a,b,c,d,x[i+9],4,-640364487);
d=md5_hh(d,a,b,c,x[i+12],11,-421815835);
c=md5_hh(c,d,a,b,x[i+15],16,530742520);
b=md5_hh(b,c,d,a,x[i+2],23,-995338651);
a=md5_ii(a,b,c,d,x[i+0],6,-198630844);
d=md5_ii(d,a,b,c,x[i+7],10,1126891415);
c=md5_ii(c,d,a,b,x[i+14],15,-1416354905);
b=md5_ii(b,c,d,a,x[i+5],21,-57434055);
a=md5_ii(a,b,c,d,x[i+12],6,1700485571);
d=md5_ii(d,a,b,c,x[i+3],10,-1894986606);
c=md5_ii(c,d,a,b,x[i+10],15,-1051523);
b=md5_ii(b,c,d,a,x[i+1],21,-2054922799);
a=md5_ii(a,b,c,d,x[i+8],6,1873313359);
d=md5_ii(d,a,b,c,x[i+15],10,-30611744);
c=md5_ii(c,d,a,b,x[i+6],15,-1560198380);
b=md5_ii(b,c,d,a,x[i+13],21,1309151649);
a=md5_ii(a,b,c,d,x[i+4],6,-145523070);
d=md5_ii(d,a,b,c,x[i+11],10,-1120210379);
c=md5_ii(c,d,a,b,x[i+2],15,718787259);
b=md5_ii(b,c,d,a,x[i+9],21,-343485551);
a=safe_add(a,_11);
b=safe_add(b,_12);
c=safe_add(c,_13);
d=safe_add(d,_14);
}
return Array(a,b,c,d);
}
function md5_cmn(q,a,b,x,s,t){
return safe_add(bit_rol(safe_add(safe_add(a,q),safe_add(x,t)),s),b);
}
function md5_ff(a,b,c,d,x,s,t){
return md5_cmn((b&c)|((~b)&d),a,b,x,s,t);
}
function md5_gg(a,b,c,d,x,s,t){
return md5_cmn((b&d)|(c&(~d)),a,b,x,s,t);
}
function md5_hh(a,b,c,d,x,s,t){
return md5_cmn(b^c^d,a,b,x,s,t);
}
function md5_ii(a,b,c,d,x,s,t){
return md5_cmn(c^(b|(~d)),a,b,x,s,t);
}
function core_hmac_md5(key,_38){
var _39=str2binl(key);
if(_39.length>16){
_39=core_md5(_39,key.length*chrsz);
}
var _3a=Array(16),_3b=Array(16);
for(var i=0;i<16;i++){
_3a[i]=_39[i]^909522486;
_3b[i]=_39[i]^1549556828;
}
var _3d=core_md5(_3a.concat(str2binl(_38)),512+_38.length*chrsz);
return core_md5(_3b.concat(_3d),512+128);
}
function safe_add(x,y){
var lsw=(x&65535)+(y&65535);
var msw=(x>>16)+(y>>16)+(lsw>>16);
return (msw<<16)|(lsw&65535);
}
function bit_rol(num,cnt){
return (num<<cnt)|(num>>>(32-cnt));
}
function str2binl(str){
var bin=Array();
var _46=(1<<chrsz)-1;
for(var i=0;i<str.length*chrsz;i+=chrsz){
bin[i>>5]|=(str.charCodeAt(i/chrsz)&_46)<<(i%32);
}
return bin;
}
function binl2str(bin){
var str="";
var _4a=(1<<chrsz)-1;
for(var i=0;i<bin.length*32;i+=chrsz){
str+=String.fromCharCode((bin[i>>5]>>>(i%32))&_4a);
}
return str;
}
function binl2hex(_4c){
var _4d=hexcase?"0123456789ABCDEF":"0123456789abcdef";
var str="";
for(var i=0;i<_4c.length*4;i++){
str+=_4d.charAt((_4c[i>>2]>>((i%4)*8+4))&15)+_4d.charAt((_4c[i>>2]>>((i%4)*8))&15);
}
return str;
}
function binl2b64(_50){
var tab="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
var str="";
for(var i=0;i<_50.length*4;i+=3){
var _54=(((_50[i>>2]>>8*(i%4))&255)<<16)|(((_50[i+1>>2]>>8*((i+1)%4))&255)<<8)|((_50[i+2>>2]>>8*((i+2)%4))&255);
for(var j=0;j<4;j++){
if(i*8+j*6>_50.length*32){
str+=b64pad;
}else{
str+=tab.charAt((_54>>6*(3-j))&63);
}
}
}
return str;
}
function setSearchTypeGSP(type){
$("tempSearchType").value=type;
var _18d=$("tempkeyword");
var _18e=$("tempKeywordHolder");
var _18f=$("tempLocationHolder");
if(_18e.getAttribute("origWidth")==null||_18e.getAttribute("origWidth")==""){
_18e.setAttribute("origWidth",_18e.offsetWidth);
}
if(_18f.getAttribute("origWidth")==null||_18f.getAttribute("origWidth")==""){
_18f.setAttribute("origWidth",_18f.offsetWidth);
}
switch(type){
case "question":
_18d.value="Enter Keywords";
_18d.setAttribute("default","Enter Keywords");
_18e.style.width=parseInt(_18e.getAttribute("origWidth"))+parseInt(_18f.getAttribute("origWidth"))+"px";
_18f.style.display="none";
break;
case "blog":
_18d.value="Enter Keywords";
_18d.setAttribute("default","Enter Keywords");
_18e.style.width=parseInt(_18e.getAttribute("origWidth"))+parseInt(_18f.getAttribute("origWidth"))+"px";
_18f.style.display="none";
break;
case "course":
_18d.value="Enter Institute or Course Name";
_18d.setAttribute("default","Enter Institute or Course Name");
_18e.style.width=_18e.getAttribute("origWidth")+"px";
_18f.style.display="";
break;
}
return true;
}
function sendMailtoUser1(_190){
hideOverlay();
showOverlay(335,400,"Sign In",$("usershortLoginOverlay").innerHTML,false,parseInt(document.body.offsetWidth)/2-167,150);
$("usershortLoginOverlay").innerHTML="";
overlayParent=$("usershortLoginOverlay");
$("genOverlayContents").style.background="#FFF";
$("genOverlayHolderDiv").style.background="#E4F0FF";
$("overlayShadow2").className="";
$("overlayTitle").innerHTML=" Forgot Password";
$("overlayShadow3").className="";
$("overlayContainer4").className="";
$("rememberme_marketing").style.display="none";
var _191=$("username_marketing").value;
$("password_marketing").style.display="none";
$("pass").style.display="none";
$("forgetPasswdM").style.display="none";
$("sendRequest").innerHTML="<div style=\"margin-left:88px\"><input id=\"forgotPasswordSubmitBtn\" type=\"submit\" onclick ='return sendForgotPasswordMail(\""+_191+"\",\"_marketing\")' value=\"Submit\" class=\"continueBtn\" style=\"border:0 none\" /><span style=\"margin-left:15px;\" class=\"normaltxt_11p_blk_arial mar_right_20p\"><a href=\"javascript:void(0);\" id = \"forgetPasswdM\"  onClick = \"return oristate1(this.form)\";>Login</a></span></div><div class=\"clear_L\">&nbsp;</div>";
$("HeaderforOverlay").innerHTML="Forgot Password";
$("username_marketing_error").innerHTML="";
return false;
}
function oristate1(){
hideOverlay();
showOverlay(335,400,"Sign In",$("usershortLoginOverlay").innerHTML,false,parseInt(document.body.offsetWidth)/2-167,150);
$("genOverlayTitleCross_hack").style.display="";
$("usershortLoginOverlay").innerHTML="";
overlayParent=$("usershortLoginOverlay");
$("genOverlayContents").style.background="#FFF";
$("genOverlayHolderDiv").style.background="#E4F0FF";
$("overlayShadow1").className="";
$("overlayShadow2").className="";
$("overlayShadow3").className="";
$("overlayContainer4").className="";
$("password_marketing").style.display="block";
$("pass").style.display="block";
$("forgetPasswdM").style.display="";
$("overlayTitle").innerHTML=" Sign In";
$("rememberme_marketing").style.display="";
$("sendRequest").innerHTML="<div class=\"float_L txt_align_r\" style=\"width:70px\">&nbsp;</div><div style=\"margin-left:91px\"><input type=\"submit\" onclick =\"return isBlank(this.form,'_marketing');\" value=\"Login\" class=\"continueBtn\" style=\"border:0  none\" /><span style=\"display:block;line-height:26px\"><a href=\"javascript:void(0);\" id = \"forgetPasswdM\"  onClick = \"return sendMailtoUser1(this.form)\";>Forgot Password</a></span></div><div class=\"clear_L\">";
$("username_marketing_error").parentNode.style.display="none";
$("username_marketing_error").innerHTML="";
$("password_marketing_error").innerHTML="";
$("username_marketing").focus();
return false;
}
function showMessagesInline1(_192,_193){
document.getElementById(_192).style.display="";
document.getElementById(_192).innerHTML=_193;
}
function senduserResponse(){
if(getCookie("userresponse")!=""){
var _194=getCookie("userresponse").split("|");
var key=_194[0];
var _196=_194[1];
var ans="";
if(_196=="unsubscribe"){
ans=confirm("You would not be allowed to login to shiksha.com once you have unsubscribed.Are you sure you want to unsubscribe from shiksha.com ?");
}
if(ans==true||_196=="verify"){
sendResponse(key,_196);
}else{
window.setTimeout(function(){
window.location=urlforveri;
},1000);
}
deleteCookie("userresponse");
}
}
function sendResponse(key,flag){
var _19a=getXMLHTTPObject();
_19a.onreadystatechange=function(){
if(_19a.readyState==4){
if(_19a.responseText!=""){
var msg="";
var _19c=_19a.responseText;
var _19d=_19c.split("|");
if(_19d[0]=="deleted"||_19d[1]=="invalid"){
if(_19d[0]=="deleted"){
msg="Sorry ! You are no longer a valid shiksha.com user. ";
}
if(_19d[1]=="invalid"){
msg="Sorry ! The url is not valid. Please click on the link sent in the mailer to update your status ";
}
if(_19d[0]=="different"||_19d[0]=="deleted"){
if(getCookie("user")!=""){
deleteCookie("user");
}
}
}else{
if(flag=="verify"){
if(_19d[1]=="already"){
msg="You have already verified this email address.Kindly add info@shiksha.com to your email account address book so that you never miss on any communication from shiksha.com.";
}else{
msg="Thank you. Your e-mail address is successfully verified with us.Kindly add info@shiksha.com to your email account address book so that you never miss on any communication from shiksha.com.";
}
if(getCookie("user")!=""&&_19d[0]=="same"){
var _19e=getCookie("user").split("|");
var _19f=_19e[0]+"|"+_19e[1]+"|verified";
setCookie("user",_19f);
}
}else{
if(_19d[1]=="already"){
msg="You have already unsubscribed for this email address.";
}else{
msg="You have successfully unsubscribed from shiksha.com.You would not be allowed to login to shiksha.com.";
}
}
if(getCookie("user")!=""&&(_19d[0]=="different"||flag=="unsubscribe")){
deleteCookie("user");
}
}
showMessagesInline1("logindiv",msg);
document.getElementById("loginCommunication").style.display="";
window.setTimeout(function(){
window.location=urlforveri;
},1000);
}
}
};
var url="/user/Userregistration/senduserResponse/"+key+"/"+flag;
_19a.open("POST",url,true);
_19a.setRequestHeader("Content-length",0);
_19a.setRequestHeader("Connection","close");
_19a.send(null);
}
function deleteCookie(name){
var path="/";
var _1a3="";
if(getCookie(name)){
document.cookie=name+"="+((path)?";path="+path:"")+((_1a3)?";domain="+_1a3:"")+";expires=Thu, 01-Jan-1970 00:00:01 GMT";
}
}
var arrayHelpText=eval("eval("+"{\"askanswer\":{\"keywordInput\":\"Enter Keywords\",\"keyword\":\"E.g. Which institute is the best for MBA, IILM, MTECH or MCA etc. \",\"locationInput\":\"Enter Location\",\"location\":\"E.g. Delhi, Pune, Canada etc.\"},\"importantdates\":{\"keywordInput\":\"Enter Keywords\",\"keyword\":\"Eg. MBA Tour, CAT admission etc.\",\"locationInput\":\"Enter Location\",\"location\":\"Eg. Australia, Karnataka or Delhi\"},\"entireshiksha\":{\"keywordInput\":\"Enter Keyword\",\"keyword\":\"E.g. MBA, Engineering, XLRI, BBA etc.\",\"locationInput\":\"Enter Location\",\"location\":\"E.g. Delhi, Pune, Canada etc.\"},\"0\":{\"keywordInput\":\"Enter Keyword\",\"keyword\":\"E.g. MBA, Engineering, XLRI, BBA etc.\",\"locationInput\":\"Enter Location\",\"location\":\"E.g. Delhi, Pune, Canada etc.\"},\"all\":{\"keywordInput\":\"Enter Keyword\",\"keyword\":\"E.g. MBA, Engineering, XLRI, BBA etc.\",\"locationInput\":\"Enter Location\",\"location\":\"E.g. Delhi, Pune, Canada etc.\"},\"courses\":{\"keywordInput\":\"Enter Course Name\",\"keyword\":\"E.g. MBA, BTECH, Software Engineering, Animation etc.\",\"locationInput\":\"Enter Location\",\"location\":\"E.g. Delhi, Pune, Canada etc.\"},\"institutescourses\":{\"keywordInput\":\"Enter Institute or Course Name\",\"keyword\":\"E.g. MBA,MCA,BBA,Animation,IIM,IIPM etc.\",\"locationInput\":\"Enter Location\",\"location\":\"E.g. Delhi, Pune, Canada etc.\"},\"institutes\":{\"keywordInput\":\"Enter Institute Name\",\"keyword\":\"E.g. IIM, Amity, MAAC, JNU etc.\",\"locationInput\":\"Enter Location\",\"location\":\"E.g. Delhi, Pune, Canada etc.\"},\"articles\":{\"keywordInput\":\"Enter Keywords\",\"keyword\":\"E.g. MBA , Study Abroad, IILM, MCA etc.\",\"locationInput\":\"Enter Location\",\"location\":\"E.g. Delhi, Pune, Canada etc.\"},\"scholarships\":{\"keywordInput\":\"Enter Keywords\",\"keyword\":\"E.g. MBA , Study Abroad, IILM, MBA or MCA etc.\",\"locationInput\":\"Enter Location\",\"location\":\"E.g. Delhi, Pune, Canada etc.\"}}"+")");
function getNumValFromPx(_1a4){
return Number(_1a4.substring(0,(_1a4.length-2)));
}
function slideFormDown(_1a5,_1a6,_1a7,_1a8){
var _1a9=$(_1a8);
if(_1a9.style.display=="block"){
return;
}
var _1aa=_1a5.style.height;
_1aa=getNumValFromPx(_1aa);
var _1ab=0;
_1a6=(_1a6>0)?_1a6:getNumValFromPx(_1a5.style.height);
var _1ac=((_1a6-_1aa)/10);
var _1ad=(_1a7/10);
var _1ae=0;
$(_1a5.id+"_counter").innerHTML="0";
_1a9.style.display="block";
_1a9.style.height=_1ab+"px";
var _1af=setInterval(function(){
_1aa+=_1ac;
_1ab+=_1ad;
_1a5.style.height=_1aa+"px";
_1a9.style.height=_1ab+"px";
_1ae++;
if(_1ae>=10){
clearInterval(_1af);
_1a9.style.height=null;
_1a9.style.overflow="";
}
},(500/10));
clearMessages(_1a5.form,true);
_1a5.style.color="#000";
return;
}
function slideFormUp(_1b0,_1b1,_1b2){
var _1b3=$(_1b2);
if(_1b3.style.display=="none"){
return;
}
var _1b4=_1b0.style.height;
_1b4=getNumValFromPx(_1b4);
_1b1=(_1b1>0)?_1b1:getNumValFromPx(_1b0.style.height);
var _1b5=_1b3.offsetHeight;
var _1b6=((_1b4-_1b1)/10);
var _1b7=(_1b5/10);
var _1b8=0;
_1b3.style.display="block";
_1b3.style.overflow="hidden";
var _1b9=setInterval(function(){
_1b4=_1b4-_1b6;
_1b5=_1b5-_1b7;
_1b0.style.height=_1b4+"px";
_1b3.style.height=_1b5+"px";
_1b8++;
if(_1b8>=10){
_1b3.style.display="none";
clearInterval(_1b9);
}
},(500/10));
_1b0.style.color="#a8a7ac";
return;
}
function orangeButtonDisableEnableWithEffect(_1ba,_1bb){
if(_1bb==true){
$(_1ba).setAttribute("disabled",true);
$(_1ba).style.color="#ccc";
}else{
$(_1ba).removeAttribute("disabled");
$(_1ba).style.color="#fff";
}
}
function updatePageCount(_1bc){
window.location=_1bc.value;
}


