function OpenSiteTour(){window.open("tour.html","SiteTour","location=no,status=no,toolbar=no,personalbar=no,menubar=no,directories=no,scrollbars=no,resizable=no,top="+(screen.width  - 720)/2 +",left="+ (screen.height - 540)/2 +",width=720,height=540");}
function setsearchFocus()
{document.getElementById('jobSearch').focus();}
if (document.addEventListener)
document.addEventListener("keypress", function(e) {return CloseEven(e) }, true);else 
document.onkeypress = function() {CloseEven(window.event) } ;var AdTestimonialTimer;var xmlDoc=null;function GetMoreEmployerColleges(mode)
{window.location.href="CollegesAndCompanybyCategory.aspx?Mode="+mode;}
function LTrim( value ) {var re = /\s*((\S+\s*)*)/;return value.replace(re, "$1");}
function RTrim( value ) {var re = /((\s*\S+)*)\s*/;return value.replace(re, "$1");}
function trim( value ) {return LTrim(RTrim(value));}
function CleanTextBox(cntrlId)
{var searchKey = document.getElementById(cntrlId.id).value;if(cntrlId.id=="jobSearch")    
{if(searchKey == 'Keywords' ||searchKey == 'Key%20words....' || searchKey == 'Keywords....' || searchKey == 'Key words....'|| trim(searchKey.replace(/%20/g,' ')) == '')
document.getElementById(cntrlId.id).value = '';}
}
function EnterKeyPressForSearchFromIndexPage(event)
{var searchKey = escape(document.getElementById("jobSearch").value);if(window.event)
{if(event.keyCode == 13)
{document.getElementById("hdnEnterKey").value="false";if(searchKey == 'Keywords' || searchKey == 'Key%20words....' || searchKey == 'Keywords....' || trim(searchKey.replace(/%20/g,' ')) == '')
{document.getElementById("jobSearch").focus();return;}
else
{jobSearchRedirectFromIndexPage();document.getElementById("hdnEnterKey").value="true";}
}
else
return;}
else if(event.which)
{if(event.which == 13)
{document.getElementById("hdnEnterKey").value="false";if(searchKey == 'Keywords' || searchKey == 'Key%20words....' || searchKey == 'Keywords....' || trim(searchKey.replace(/%20/g,' ')) == '')
{document.getElementById("jobSearch").focus();return;}
else
{jobSearchRedirectFromIndexPage();document.getElementById("hdnEnterKey").value="true";}
}
else
return;}
}
function jobSearchRedirectFromIndexPage()
{document.getElementById("hdnEnterKey").value="false";var searchKey = document.getElementById("jobSearch").value;if(searchKey.indexOf("+"))
searchKey = searchKey.replace(/\+/g,",plus,");searchKey = searchKey.replace(/\'/g,"");var indexpageloc="-1";var IndexPageCode=document.getElementById("srhCriteriaDdl").value;if(searchKey == 'Keywords' || searchKey == 'Key%20words....' || searchKey == 'Keywords....' || trim(searchKey.replace(/%20/g,' ')) == '')
{alert('Enter Keyword');document.getElementById("HdnSearchKey").value="";document.getElementById("jobSearch").focus();return false;}
else
{document.getElementById("HdnSearchKey").value= searchKey;document.getElementById("HdnLoc").value=indexpageloc;document.getElementById("HdnCode").value=IndexPageCode;document.getElementById("searchbtn").focus()
return true;}
}
function ShowAnonymousSearchResultPage()
{var typeOfJob=document.getElementById("srhCriteriaDdl").value;var searchKey=document.getElementById("jobSearch").value;if(typeOfJob==1)
{if(document.getElementById("hdnTypeOfUser").value=="jobseeker")
{window.location="Dashboard.aspx?navfromindex=AdvancePeopleSearch.aspx&keywords=" +  escape(searchKey);}
else if(document.getElementById("hdnTypeOfUser").value=="otherUser")
{}
else
{document.location="Quicksignup.aspx?ReturnUrl=Unite/AdvancePeopleSearch.aspx?keywords=" +  escape(searchKey);}
}
else if(typeOfJob==2)
{if(document.getElementById("hdnTypeOfUser").value=="jobseeker")
{window.location.href="Dashboard.aspx?navfromindex=AdvanceCompanySearch.aspx&keywords=" +  escape(searchKey);}
else if(document.getElementById("hdnTypeOfUser").value=="otherUser")
{}
else
{document.location="Quicksignup.aspx?ReturnUrl=Unite/AdvanceCompanySearch.aspx?keywords=" +  escape(searchKey);}
}
else
window.location= "Common/AnonymousSearchResult.aspx?" + document.getElementById("hdnAdvSearch").value;}
function CloseEven(e)
{var SenderControl;SenderControl = e.srcElement || e.target;if(SenderControl.tagName!="INPUT" && SenderControl.tagName!="SELECT" && SenderControl.tagName!="TEXTAREA" && SenderControl.tagName!="BODY")
{key = e.keyCode || e.charCode;switch(key)
{case 120:
case 27:
Windows.closeAll();break;}
}
}
var showDashboardReq=false;function ShowDashboard()
{try 
{showDashboardReq = new XMLHttpRequest();}
catch (trymicrosoft)
{try 
{showDashboardReq = new ActiveXObject("Msxml2.XMLHTTP");}
catch(othermicrosoft)
{try
{showDashboardReq = new ActiveXObject("Microsoft.XMLHTTP");}
catch (failed)
{showDashboardReq = false;}
}
}
if(showDashboardReq)
{var dashUrl=document.getElementById(ctrlprefix+'HostUrl').value+ "webservices/indexservice.asmx/ClearReturnUrlSession";showDashboardReq.open("POST",dashUrl,true);showDashboardReq.send(null);}
}
var TestmonialCnt;var TestDoc;var SiteUpdateCnt;var loadedTestmn = false;function LoadTestimonials(indexFlag)
{TestmonialCnt=0;if (window.ActiveXObject)
{TestDoc=new ActiveXObject("Microsoft.XMLDOM");TestDoc.onreadystatechange = function () {if (TestDoc.readyState == 4)
{try {buildTestimonials();}
catch(e) {}
}};}
else if (document.implementation.createDocument)
{TestDoc=document.implementation.createDocument("","",null);TestDoc.onload=buildTestimonials;}   
if(document.getElementById("divTitle")!=null && !loadedTestmn)
{loadedTestmn = true;AdTestimonialTimer=setInterval("buildTestimonials()",8000);}
if(indexFlag=="true")
TestDoc.load("Resources/Testmonials.xml");else
TestDoc.load("../Resources/Testmonials.xml");}
var PreviousTestVar = null;var NextTestVar = null;function buildTestimonials()
{if(TestDoc != null)
{if(document.getElementById("divTitle")!=null)
{if(PreviousTestVar !=1 && NextTestVar !=1)
{if(TestmonialCnt<TestDoc.getElementsByTagName("Testmonial").length)
TestmonialCnt++;else
TestmonialCnt = 0;for(var su = 0;su < TestDoc.getElementsByTagName("Testmonial").length;su++)
{if(TestDoc.getElementsByTagName("DynamicType")[TestmonialCnt] != null)
{var dynamicTypeVal = TestDoc.getElementsByTagName("DynamicType")[TestmonialCnt].text?TestDoc.getElementsByTagName("DynamicType")[TestmonialCnt].text:TestDoc.getElementsByTagName("DynamicType")[TestmonialCnt].textContent;if(parseInt(dynamicTypeVal,10) == 88427) 
{try
{if(TestDoc.getElementsByTagName("imgsrc")[TestmonialCnt] != null)
{var testImgURL = TestDoc.getElementsByTagName("imgsrc")[TestmonialCnt].text?TestDoc.getElementsByTagName("imgsrc")[TestmonialCnt].text:TestDoc.getElementsByTagName("imgsrc")[TestmonialCnt].textContent;if(testImgURL == "" || testImgURL == undefined)
{document.getElementById("testmimage").innerHTML = "&nbsp;";}
else
{document.getElementById("testmimage").innerHTML = "<img src='Polls/GetThumbnail.aspx?filename=../" + testImgURL + "&width=66&height=46' border='0' />";}
}
}
catch(ex){}
document.getElementById("divTitle").innerHTML=TestDoc.getElementsByTagName("Title")[TestmonialCnt].text?TestDoc.getElementsByTagName("Title")[TestmonialCnt].text:TestDoc.getElementsByTagName("Title")[TestmonialCnt].textContent;var authorStr = TestDoc.getElementsByTagName("Author")[TestmonialCnt].text?TestDoc.getElementsByTagName("Author")[TestmonialCnt].text:TestDoc.getElementsByTagName("Author")[TestmonialCnt].textContent;if(authorStr == "" || authorStr == undefined)
{document.getElementById("divAuthor").innerHTML = "&nbsp;";}
else
{document.getElementById("divAuthor").innerHTML = TestDoc.getElementsByTagName("Author")[TestmonialCnt].text?TestDoc.getElementsByTagName("Author")[TestmonialCnt].text:TestDoc.getElementsByTagName("Author")[TestmonialCnt].textContent;}
var designStr = TestDoc.getElementsByTagName("Designation")[TestmonialCnt].text?TestDoc.getElementsByTagName("Designation")[TestmonialCnt].text:TestDoc.getElementsByTagName("Designation")[TestmonialCnt].textContent;if(designStr == "" || designStr == undefined)
{document.getElementById("divDesig").innerHTML = "&nbsp;";}
else
{document.getElementById("divDesig").innerHTML = TestDoc.getElementsByTagName("Designation")[TestmonialCnt].text?TestDoc.getElementsByTagName("Designation")[TestmonialCnt].text:TestDoc.getElementsByTagName("Designation")[TestmonialCnt].textContent;}
break;}
}
if(TestmonialCnt<TestDoc.getElementsByTagName("Testmonial").length)
TestmonialCnt = TestmonialCnt + 1;else
TestmonialCnt = 0;}
}
PreviousTestVar=null;NextTestVar=null;if(PreviousTestVar !=1 && NextTestVar !=1)
{if(SiteUpdateCnt<TestDoc.getElementsByTagName("Testmonial").length)
SiteUpdateCnt++;else
SiteUpdateCnt=0;for(var supd = 0;supd < TestDoc.getElementsByTagName("Testmonial").length;supd++)
{if(TestDoc.getElementsByTagName("DynamicType")[SiteUpdateCnt] != null)
{var dynamicTypeSDVal = TestDoc.getElementsByTagName("DynamicType")[SiteUpdateCnt].text?TestDoc.getElementsByTagName("DynamicType")[SiteUpdateCnt].text:TestDoc.getElementsByTagName("DynamicType")[SiteUpdateCnt].textContent;if(parseInt(dynamicTypeSDVal,10) == 88428)
{var siteUpdHTML = "";if(TestDoc.getElementsByTagName("imgsrc")[SiteUpdateCnt] != null)
{var sdImgURL = TestDoc.getElementsByTagName("imgsrc")[SiteUpdateCnt].text?TestDoc.getElementsByTagName("imgsrc")[SiteUpdateCnt].text:TestDoc.getElementsByTagName("imgsrc")[SiteUpdateCnt].textContent;if(sdImgURL == "" || sdImgURL == undefined)
{siteUpdHTML += "&nbsp;";}
else
{siteUpdHTML += "<img src='Polls/GetThumbnail.aspx?filename=../" + sdImgURL + "&width=58&height=58' border='0' />";}
}
var sdTitle = TestDoc.getElementsByTagName("DTTitle")[SiteUpdateCnt].text?TestDoc.getElementsByTagName("DTTitle")[SiteUpdateCnt].text:TestDoc.getElementsByTagName("DTTitle")[SiteUpdateCnt].textContent;siteUpdHTML += "<span class='title_sub'>" + sdTitle + "</span><br />";var bodyContent = TestDoc.getElementsByTagName("Title")[SiteUpdateCnt].text?TestDoc.getElementsByTagName("Title")[SiteUpdateCnt].text:TestDoc.getElementsByTagName("Title")[SiteUpdateCnt].textContent;if(bodyContent.length > 170)
siteUpdHTML += bodyContent.substring(0,167) + "...";else
siteUpdHTML += bodyContent;document.getElementById("divSiteUpdates").innerHTML = siteUpdHTML;break;}
}
if(SiteUpdateCnt<TestDoc.getElementsByTagName("Testmonial").length)
SiteUpdateCnt = SiteUpdateCnt + 1;else
SiteUpdateCnt = 0;}
}
}
}
else
{LoadTestimonials();}
}
function PreviousTestimonial()
{if(TestmonialCnt==0)
{TestmonialCnt = TestDoc.getElementsByTagName("Testmonial").length-1;}
else
TestmonialCnt--;PreviousTestVar = 1;buildTestimonials();}
function NextTestimonial()
{if(TestmonialCnt==TestDoc.getElementsByTagName("Testmonial").length-1)
{TestmonialCnt = 0;}
else
TestmonialCnt++;NextTestVar = 1;buildTestimonials();}
function CheckSpecialSymbols(strData)
{if(strData.indexOf('&')>-1)
{return strData.replace(/&/g,'&amp;');}
else
return strData
}
var showJobFair1=false;var xmlResDoc="";function ShowJobfairAds()
{try 
{showJobFair1 = new XMLHttpRequest();}
catch (trymicrosoft)
{try 
{showJobFair1 = new ActiveXObject("Msxml2.XMLHTTP");}
catch(othermicrosoft)
{try
{showJobFair1 = new ActiveXObject("Microsoft.XMLHTTP");}
catch (failed)
{showJobFair1 =false;}
}
}
if(showJobFair1)
{var dashUrl=document.getElementById(ctrlprefix+'HostUrl').value+ "Common/GetJobfairs.aspx";showJobFair1.open("GET", dashUrl,  true);showJobFair1.onreadystatechange = LoadFialJFAds;showJobFair1.send(null);}
}
function LoadAsXML(Content)
{var xmlDoc;if (window.ActiveXObject)
{xmlDoc=new ActiveXObject("Microsoft.XMLDOM");xmlDoc.loadXML(Content);}
else if (document.implementation && document.implementation.createDocument)
{var parser=new DOMParser();xmlDoc=document.implementation.createDocument("","",null);Content = Content.replace(/\B\s\B/g,"");xmlDoc=parser.parseFromString(Content,"text/xml");}
return xmlDoc;}
function LoadFialJFAds()
{if(showJobFair1.readyState==4)
{if(window.ActiveXObject)
{xmlJobFairResDoc = LoadAsXML(CheckSpecialSymbols(showJobFair1.responseXML.xml));}
else
{xmlJobFairResDoc = LoadAsXML(CheckSpecialSymbols(showJobFair1.responseText));}
if(xmlJobFairResDoc!=null && xmlJobFairResDoc.getElementsByTagName("JFId").length>0)
{parent.document.getElementById("DivHead").style.display="block";var Arrlength=xmlJobFairResDoc.getElementsByTagName("JFId").length;var CntVJobFair=0;var CntPjobfair=0;VirtualJobFairArr=new Array();PhysicalJobfairsArr=new Array();for(ArrCnt=0;ArrCnt<Arrlength;ArrCnt++)
{var JobFairType=xmlJobFairResDoc.getElementsByTagName("JFWindowType")[ArrCnt].text ? xmlJobFairResDoc.getElementsByTagName("JFWindowType")[ArrCnt].text : xmlJobFairResDoc.getElementsByTagName("JFWindowType")[ArrCnt].textContent;if(JobFairType=="Virtual")
{VirtualJobFairArr[CntVJobFair]=new Array(5);VirtualJobFairArr[CntVJobFair][0]=xmlJobFairResDoc.getElementsByTagName("JFId")[ArrCnt].text ? xmlJobFairResDoc.getElementsByTagName("JFId")[ArrCnt].text : xmlJobFairResDoc.getElementsByTagName("JFId")[ArrCnt].textContent;VirtualJobFairArr[CntVJobFair][1]=xmlJobFairResDoc.getElementsByTagName("JFairName")[ArrCnt].text ? xmlJobFairResDoc.getElementsByTagName("JFairName")[ArrCnt].text : xmlJobFairResDoc.getElementsByTagName("JFairName")[ArrCnt].textContent;VirtualJobFairArr[CntVJobFair][2]=xmlJobFairResDoc.getElementsByTagName("JFStartDate")[ArrCnt].text ? xmlJobFairResDoc.getElementsByTagName("JFStartDate")[ArrCnt].text : xmlJobFairResDoc.getElementsByTagName("JFStartDate")[ArrCnt].textContent;VirtualJobFairArr[CntVJobFair][3]=xmlJobFairResDoc.getElementsByTagName("JFEndDate")[ArrCnt].text ? xmlJobFairResDoc.getElementsByTagName("JFEndDate")[ArrCnt].text : xmlJobFairResDoc.getElementsByTagName("JFEndDate")[ArrCnt].textContent;VirtualJobFairArr[CntVJobFair][4]=xmlJobFairResDoc.getElementsByTagName("JFWindowType")[ArrCnt].text ? xmlJobFairResDoc.getElementsByTagName("JFWindowType")[ArrCnt].text : xmlJobFairResDoc.getElementsByTagName("JFWindowType")[ArrCnt].textContent;CntVJobFair++;}
else
{PhysicalJobfairsArr[CntPjobfair]=new Array(5);PhysicalJobfairsArr[CntPjobfair][0]=xmlJobFairResDoc.getElementsByTagName("JFId")[ArrCnt].text ? xmlJobFairResDoc.getElementsByTagName("JFId")[ArrCnt].text : xmlJobFairResDoc.getElementsByTagName("JFId")[ArrCnt].textContent;PhysicalJobfairsArr[CntPjobfair][1]=xmlJobFairResDoc.getElementsByTagName("JFairName")[ArrCnt].text ? xmlJobFairResDoc.getElementsByTagName("JFairName")[ArrCnt].text : xmlJobFairResDoc.getElementsByTagName("JFairName")[ArrCnt].textContent;PhysicalJobfairsArr[CntPjobfair][2]=xmlJobFairResDoc.getElementsByTagName("JFStartDate")[ArrCnt].text ? xmlJobFairResDoc.getElementsByTagName("JFStartDate")[ArrCnt].text : xmlJobFairResDoc.getElementsByTagName("JFStartDate")[ArrCnt].textContent;PhysicalJobfairsArr[CntPjobfair][3]=xmlJobFairResDoc.getElementsByTagName("JFEndDate")[ArrCnt].text ? xmlJobFairResDoc.getElementsByTagName("JFEndDate")[ArrCnt].text : xmlJobFairResDoc.getElementsByTagName("JFEndDate")[ArrCnt].textContent;PhysicalJobfairsArr[CntPjobfair][4]=xmlJobFairResDoc.getElementsByTagName("JFWindowType")[ArrCnt].text ? xmlJobFairResDoc.getElementsByTagName("JFWindowType")[ArrCnt].text : xmlJobFairResDoc.getElementsByTagName("JFWindowType")[ArrCnt].textContent;CntPjobfair++;}
}
if(VirtualJobFairArr.length>0)
DisplayJobFairImages("V");else
DisplayJobFairImages("P");}
else
{}
}
}
function CheckSpecialSymbols(strData)
{if(strData.indexOf('&')>-1)
{return strData.replace(/&/g,'&amp;');}
else
return strData
}
var jobfairadvert;var Jobfairname;var Jobfairstartdate;var Jobfairenddate;var jobfairqueue=new Array();var jobFairTimeInterval;var jobFairId;var rowcnt=0;var jfWindowType="";var VirtualJobFairArr;var PhysicalJobfairsArr;var Mode="";var Virtualrowcnt=0;var Physicalrowcnt=0;function DisplayJobFairImages(mode)
{Mode=mode;if(Mode=="V")
{parent.document.getElementById("VirtualLink").className="jf_tab_active";parent.document.getElementById("PhysicalLink").className="jf_tab";if(VirtualJobFairArr.length>0)
{BindVirtualJobFair()
if(VirtualJobFairArr.length > 1)
{if(Virtualrowcnt==VirtualJobFairArr.length-1)
{Virtualrowcnt=0;}
else
{Virtualrowcnt=Virtualrowcnt+1;}
HideJobFairImages();}
}  
else
{parent.document.getElementById('JobfairsDiv').innerHTML="<br>&nbsp;&nbsp;&nbsp;No virtual jobfair(s) available";} 
}
else
{parent.document.getElementById("PhysicalLink").className="jf_tab_active";parent.document.getElementById("VirtualLink").className="jf_tab";if(PhysicalJobfairsArr.length>0)
{BindPhysicalJobFair();if(PhysicalJobfairsArr.length > 1)
{if(Physicalrowcnt==PhysicalJobfairsArr.length-1)
{Physicalrowcnt=0;}
else
{Physicalrowcnt=Physicalrowcnt+1;}
HideJobFairImages();}
}   
else
{parent.document.getElementById('JobfairsDiv').innerHTML="<br>&nbsp;&nbsp;&nbsp;No physical jobfair(s) available";} 
}  
}
function HideJobFairImages()
{jobFairTimeInterval=setInterval("SetJobFairImages()",10000);}
function SetJobFairImages()
{clearInterval(jobFairTimeInterval);DisplayJobFairImages(Mode);}
function ConvertIntMonthToString(monthInt)
{var monthName;switch(monthInt)
{case "01":
monthName="Jan";break;case "02":
monthName="Feb";break;case "03":
monthName="Mar";break;case "04":
monthName="Apr";break;case "05":
monthName="May";break;case "06":
monthName="Jun";break;case "07":
monthName="Jul";break;case "08":
monthName="Aug";break;case "09":
monthName="Sep";break;case "10":
monthName="Oct";break;case "11":
monthName="Nov";break;case "12":
monthName="Dec";}
return monthName;}
function OpenJobFair(jFId,jFName,jFWindowType)
{if(jFWindowType=="Virtual")
{window.location.href=document.getElementById(ctrlprefix+'HostUrl').value + "Jobfair/JobFairHomePage.aspx?JFId="+jFId;}
else
{var url= document.getElementById(ctrlprefix+'HostUrl').value+"JobFair/PhysicalJobFairListForUsers.aspx?PJobFairId="+jFId;window.open(url, "mywindow","status=0,toolbar=0,menubar=0,width=600,height=100");}    
}
function ShowFeed(FeedId)
{var url= "ShowFeed.aspx?FeedId="+FeedId;window.open(url, "showfeed","status=0,toolbar=0,menubar=1,width=600,height=500");}
function ShowButtons()
{parent.document.getElementById("LeftButton").style.display="block";parent.document.getElementById("RightButton").style.display="block";window.clearInterval(jobFairTimeInterval);jobFairTimeInterval=null;}
function HideButtons()
{parent.document.getElementById("LeftButton").style.display="none";parent.document.getElementById("RightButton").style.display="none";window.clearInterval(jobFairTimeInterval);jobFairTimeInterval=null;jobFairTimeInterval=setInterval("SetJobFairImages()",10000);}
function ShowPreviousJobfair()
{if(Mode=="V")
{if(VirtualJobFairArr.length>0)
{if(Virtualrowcnt==0)
{Virtualrowcnt=VirtualJobFairArr.length-1;}
else 
{Virtualrowcnt=Virtualrowcnt-1;}
BindVirtualJobFair();} 
}
else
{if(PhysicalJobfairsArr.length>0)
{if(Physicalrowcnt==0)
{Physicalrowcnt=PhysicalJobfairsArr.length-1;}
else 
{Physicalrowcnt=Physicalrowcnt-1;}
BindPhysicalJobFair();}    
}
}
function ShowNextJobfair()
{if(Mode=="V")
{if(VirtualJobFairArr.length>0)
{if(Virtualrowcnt==VirtualJobFairArr.length-1)
{Virtualrowcnt=0;}
else 
{Virtualrowcnt=Virtualrowcnt+1;}
BindVirtualJobFair();}   
}
else
{if(PhysicalJobfairsArr.length>0)
{if(Physicalrowcnt==PhysicalJobfairsArr.length-1)
{Physicalrowcnt=0;}
else 
{Physicalrowcnt=Physicalrowcnt+1;}
BindPhysicalJobFair();}        
}
}
function BindVirtualJobFair()
{VjobFairId=VirtualJobFairArr[Virtualrowcnt][0];VJobfairname=VirtualJobFairArr[Virtualrowcnt][1];VJobfairstartdate =VirtualJobFairArr[Virtualrowcnt][2];VJobfairenddate =VirtualJobFairArr[Virtualrowcnt][3];VjfWindowType=VirtualJobFairArr[Virtualrowcnt][4];var startdate=VJobfairstartdate;var enddate=VJobfairenddate;var startDateArray=VJobfairstartdate.split('-');var startDateDay=startDateArray[2].substring(0,2);var startDateMonth=ConvertIntMonthToString(startDateArray[1]);var endDateArray=VJobfairenddate.split('-');var endDateDay=endDateArray[2].substring(0,2);var endDateMonth=ConvertIntMonthToString(endDateArray[1]);jobfairadvert ='<a onclick="OpenJobFair('+VjobFairId+',\''+VJobfairname+'\',\''+VjfWindowType+'\')" style="cursor:pointer" >';jobfairadvert += '<span class="jf_title">'+VJobfairname+'</span><br />'
+'<span class="jf_subtitle">'+startDateDay+" "+startDateMonth+" - "+endDateDay+" "+endDateMonth+'</span>'
+'</a>'                           
parent.document.getElementById('JobfairsDiv').innerHTML=jobfairadvert;}
function BindPhysicalJobFair()
{PjobFairId = PhysicalJobfairsArr[Physicalrowcnt][0];PJobfairname = PhysicalJobfairsArr[Physicalrowcnt][1];PJobfairstartdate =PhysicalJobfairsArr[Physicalrowcnt][2];PJobfairenddate =PhysicalJobfairsArr[Physicalrowcnt][3];PjfWindowType=PhysicalJobfairsArr[Physicalrowcnt][4];var startdate=PJobfairstartdate;var enddate=PJobfairenddate;var startDateArray=PJobfairstartdate.split('-');var startDateDay=startDateArray[2].substring(0,2);var startDateMonth=ConvertIntMonthToString(startDateArray[1]);var endDateArray=PJobfairenddate.split('-');var endDateDay=endDateArray[2].substring(0,2);var endDateMonth=ConvertIntMonthToString(endDateArray[1]);jobfairadvert ='<a onclick="OpenJobFair('+PjobFairId+',\''+PJobfairname+'\',\''+PjfWindowType+'\')" style="cursor:pointer" >';jobfairadvert += '<span class="jf_title">'+PJobfairname+'</span><br />'
+'<span class="jf_subtitle">'+startDateDay+" "+startDateMonth+" - "+endDateDay+" "+endDateMonth+'</span>'
+'</a>'                           
parent.document.getElementById('JobfairsDiv').innerHTML=jobfairadvert;}
function RedirectToChkOutPage(userType)
{var custTypeId = 0;if(parseInt(userType,10) == 0)
custTypeId = "r";else if(parseInt(userType,10) == 1)
custTypeId = "p";else if(parseInt(userType,10) == 2)
custTypeId = "o";window.location = "Checkout.aspx?Mode=" + custTypeId;}
function ShowMockTest(Mode)
{if(Mode==1)
{window.location = "dashboard.aspx?navigatedfrom=MockTestDomains.aspx";}
else
{var width = window.screen.availWidth;var height = window.screen.availHeight;var win = window.open("JSPublicProfileView.aspx?mode=1","MockTest","width=" + width + ",height=" + height + ",left=0,top=0,status=no,toolbar=no,addressbar=no,scrollbars=yes,menubar=no,location=no,resizable=yes");if(win==null)
alert("Please disable popup blocker");else
{win.moveTo(0,0);win.focus();}
}
}
function JoinInterviewRoom()
{var width = window.screen.availWidth;var height = window.screen.availHeight;var roomWin =window.open("Common/DemoInterviewPage.aspx?mode=0", 'InterviewRoom', 'toolbar=1,scrollbars=1,location=1,menubar=1,resizable=1,width=' + width +  ',height=' + height +',left = 0,top = 0');if(roomWin==null)
alert("Please Disable Popup blocker");else
{roomWin.moveTo(0,0);roomWin.focus();}
}
function OpenTestimonials()
{window.location.href = "AboutUs.aspx?aboutType=2";}
function ShowHomeSiteUpdates()
{window.location.href = "AboutUs.aspx?aboutType=3";}
function navigateToJobs(industryId)
{window.location.href="JobSeekers/FeaturedJobs.aspx?industryId=" + industryId;}
function ShowOrganizationSite(orgId)
{var width = window.screen.availWidth;var height = window.screen.availHeight;win = window.open("Recruiter/MicroSite.aspx?orgId=" + orgId,"_blank","width=" + width + ",height=" + height + "left=0,top=0,status=no,toolbar=no,addressbar=no,scrollbars=yes,menubar=no,location=no,resizable=yes");win.moveTo(0,0);}
function ShowAllCollegesCompanies(mode)
{window.location.href="CollegesAndCompanybyCategory.aspx?Mode=" + mode;}  
var slideTimeBetweenSteps = 120;var scrollingContainer = false;var scrollingContent = false;var containerHeight;var contentHeight;var contentObjects = new Array();var originalslideSpeed = false;function slideContent(containerId)
{var topPos = contentObjects[containerId]['objRef'].style.top.replace(/[^\-0-9]/g,'');topPos = topPos - contentObjects[containerId]['slideSpeed'];if(topPos/1 + contentObjects[containerId]['contentHeight']/1<0)topPos = contentObjects[containerId]['contentHeight'];contentObjects[containerId]['objRef'].style.top = topPos + 'px';setTimeout('slideContent("' + containerId + '")',slideTimeBetweenSteps);}
function stopSliding()
{var containerId = this.id;contentObjects[containerId]['slideSpeed'] = 0;}
function restartSliding()
{var containerId = this.id;contentObjects[containerId]['slideSpeed'] = contentObjects[containerId]['originalSpeed'];}
function initSlidingContent(containerId,slideSpeed)
{scrollingContainer = document.getElementById(containerId);scrollingContent = scrollingContainer.getElementsByTagName('DIV')[0];scrollingContainer.style.position = 'relative';scrollingContainer.style.overflow = 'hidden';scrollingContent.style.position = 'relative';scrollingContainer.onmouseover = stopSliding;scrollingContainer.onmouseout = restartSliding;originalslideSpeed = slideSpeed;scrollingContent.style.top = '165px';contentObjects[containerId] = new Array();contentObjects[containerId]['objRef'] = scrollingContent;contentObjects[containerId]['contentHeight'] = scrollingContent.offsetHeight;contentObjects[containerId]['containerHeight'] = scrollingContainer.clientHeight;contentObjects[containerId]['slideSpeed'] = slideSpeed;contentObjects[containerId]['originalSpeed'] = slideSpeed;slideContent(containerId);}
function SetDefaultValue(type,bool)
{var username = 'username';var password = 'password';if(parseInt(type,10) == 0)
{if(bool){if(document.getElementById(ctrlprefix + 'txtUserId') != null)
{if(trim(document.getElementById(ctrlprefix + 'txtUserId').value).length == 0)
document.getElementById(ctrlprefix + 'txtUserId').value = username;}
}
else{if(trim(document.getElementById(ctrlprefix + 'txtUserId').value) == username)
document.getElementById(ctrlprefix + 'txtUserId').value = '';}
}
else
{if(document.getElementById(ctrlprefix + 'txtPassword') != null)
{if(document.getElementById(ctrlprefix + 'lblError') != null)
{if(document.getElementById(ctrlprefix + 'lblError').innerHTML.length > 0 && trim(document.getElementById(ctrlprefix + 'txtPassword').value).length == 0)
{document.getElementById(ctrlprefix + 'txtPassword').value = '';document.getElementById(ctrlprefix + 'txtPassword').focus();}
else
{if(bool){if(document.getElementById(ctrlprefix + 'txtPassword') != null)
{if(trim(document.getElementById(ctrlprefix + 'txtPassword').value).length == 0)
document.getElementById(ctrlprefix + 'txtPassword').value = password;}
}
else{if(document.getElementById(ctrlprefix + 'txtPassword') != null)
{if(trim(document.getElementById(ctrlprefix + 'txtPassword').value) == password)
document.getElementById(ctrlprefix + 'txtPassword').value = '';}
}
}
}
}
}
}
function ShowColleges(CollegeId)
{var width = window.screen.availWidth;var height = window.screen.availHeight;win = window.open("Recruiter/MicroSiteForCollege.aspx?Collegeid=" + CollegeId,"_blank","width=" + width + ",height=" + height + "left=0,top=0,status=no,toolbar=no,addressbar=no,scrollbars=yes,menubar=no,location=no,resizable=yes");win.moveTo(0,0);}
var empDisplayArray;var consDisplayArray;var presentationsArray;var empDisCount = 0;var consDisCount = 0;var preCount = 0;function FeaturedEmpInsts(resEmp, resInst, resPres)
{if(resEmp != null)
{empDisplayArray = resEmp;empDisCount = empDisplayArray.length;DisplayFeaturedEmployers();}
if(resInst != null)
{consDisplayArray = resInst;consDisCount = consDisplayArray.length;DisplayFeaturedInstitutes();}
}
function DisplayPresentations()
{var preImages = "<tr>";var preImgText = "<tr>";var preText = "<table width='100%' border='0' cellspacing='3' cellpadding='0' align='center' style='float:left'>";if(document.getElementById("PreviousPre"))
{for(var i=0;i<3;i++)
{if(preCount < presentationsArray.length)
{preImages += "<td align='center'>";preImages += "<a href='javascript:void(0)' onclick='ShowFeed(\""+ presentationsArray[preCount].FeedId + "\")'><img class='border' src='" + presentationsArray[preCount].FeedImage + "' alt='' border='0' /></a>";preImages += "</td>";preImgText += "<td align='center' style='width: 30%'>";preImgText += presentationsArray[preCount].FeedName;preImgText += "</td>";preCount += 1;if(preCount > 3)
{document.getElementById("PreviousPre").disabled = false;document.getElementById("PreviousPre").className = 'left';}
else
{document.getElementById("PreviousPre").disabled = true;document.getElementById("PreviousPre").className = 'left_d';}
if(preCount >= presentationsArray.length)
{document.getElementById("NextPre").disabled = true;document.getElementById("NextPre").className = 'right_d';break;}
else if(presentationsArray.length > 3)
{document.getElementById("NextPre").disabled = false;document.getElementById("NextPre").className = 'right';}
else
{document.getElementById("NextPre").className = 'right_d';document.getElementById("NextPre").disabled = true;}
}
else
{document.getElementById("NextPre").className = 'right_d';document.getElementById("NextPre").disabled = true;}
}
document.getElementById("preDiv").innerHTML = "";document.getElementById("preDiv").innerHTML = preText + preImages + "</tr>" + preImgText + "</tr>" + "</table>";}
}
function presentationsNext()
{if(preCount < presentationsArray.length)
{preCountState = preCountState + 3;DisplayPresentations();}
}
var preCountState = 0;function prestationsPrevious()
{preCount = preCountState - 3;preCountState = preCountState -3;if(preCount < 0)
{preCount = 0;preCountState = 0;}
DisplayPresentations();}
var noOfLogos=0;function DisplayFeaturedEmployers()
{var employerimages = "";employerimages  = '<table width="100%" height="200" border="0" cellpadding="3" cellspacing="0" id="ImageTable">';var createRow = true;if(createRow)
{createRow = false;employerimages+="<tr><td align='left' valign='top'>";}
for(var empCount=1;empCount<=9;empCount++)
{if(empDisplayArray.length>noOfLogos)
{employerimages+='<div class="thumb_fea"><table cellpading="0" cellspacing="0" border="0" class="thumb_tbl"><tr><td align="center" valing="middle"><a href="javascript:void(0)"><img src="'+empDisplayArray[noOfLogos].Logo+'" onclick="openURl(\'' + empDisplayArray[noOfLogos].CompanyUrl + '\')" border="0" style="cursor:pointer" title="' + empDisplayArray[noOfLogos].OrgName  + '" /></a></td></tr></table></div>';}
else
{if(parent.document.getElementById('divFeaturedCompanies') != null)
{parent.document.getElementById('divFeaturedCompanies').innerHTML = employerimages;}
if(empDisCount<empCount)
break;else
{noOfLogos=0;employerimages+='<div class="thumb_fea"><table cellpading="0" cellspacing="0" border="0" class="thumb_tbl"><tr><td align="center" valing="middle"><a href="javascript:void(0)"><img src="'+empDisplayArray[noOfLogos].Logo+'" onclick="openURl(\'' + empDisplayArray[noOfLogos].CompanyUrl + '\')" border="0" style="cursor:pointer" title="' + empDisplayArray[noOfLogos].OrgName  + '" /></a></td></tr></table></div>';}
}
noOfLogos=noOfLogos+1;if(noOfLogos > empDisCount)
{noOfLogos=0;continue;}
if(empCount==9)
{if(document.getElementById('divFeaturedCompanies') != null)
{document.getElementById('divFeaturedCompanies').innerHTML = employerimages;if(empDisCount==empCount)
break;else
HideImages();}
}
}
if(true)
{createRow = true;employerimages+="</td></tr>";}
}
function HideImages()
{timeInterval=setInterval("HidingFeaturedEmployers()",30000);}
function HidingFeaturedEmployers()
{DisplayFeaturedEmployers();clearInterval(timeInterval);}
var noOfInsts=0;function DisplayFeaturedInstitutes()
{var consultantimages = "";consultantimages  =   '<table width="100%" height="200" border="0" cellpadding="3" cellspacing="0" id="ImageTable1">';var createRow = true;if(createRow)
{createRow = false;consultantimages += "<tr><td align='left' valign='top'>";}
for(var empCount=1;empCount <= 9;empCount++)
{if(consDisplayArray.length>noOfInsts)
{var instLogo = consDisplayArray[noOfInsts].Logo;instLogo = instLogo.replace('~/','');consultantimages += '<div class="thumb_fea"><table cellpading="0" cellspacing="0" border="0" class="thumb_tbl"><tr><td align="center" valing="middle"><a href="javascript:void(0)"><img src="'+instLogo+'" onclick="openCollege(\'' + consDisplayArray[noOfInsts].CompanyUrl + '\')"  style="cursor:pointer" border="0" title="' + consDisplayArray[noOfInsts].OrgName  + '" /></a></td></tr></table></div>';}
else
{if(parent.document.getElementById('divFeaturedInstitutions') != null)
{parent.document.getElementById('divFeaturedInstitutions').innerHTML = consultantimages;}
if(consDisCount < empCount)
break;else
{noOfInsts = 0;var instLogo = consDisplayArray[noOfInsts].Logo;instLogo = instLogo.replace('~/','');consultantimages += '<div class="thumb_fea"><table cellpading="0" cellspacing="0" border="0" class="thumb_tbl"><tr><td align="center" valing="middle"><a href="javascript:void(0)"><img src="'+ instLogo +'" onclick="openCollege(\'' + consDisplayArray[noOfInsts].CompanyUrl + '\')" style="cursor:pointer" border="0" title="' + consDisplayArray[noOfInsts].OrgName  + '" /></a></td></tr></table></div>';}
}
noOfInsts = noOfInsts + 1;if(noOfInsts > consDisCount)
{noOfInsts = 0;continue;}
if(empCount == 9)
{if(document.getElementById('divFeaturedInstitutions') != null)
{document.getElementById('divFeaturedInstitutions').innerHTML = consultantimages;if(consDisCount == empCount)
break;else
HideConsultantImages();}
}
}
if(true)
{createRow = true;consultantimages += "</td></tr>";}
}
function HideConsultantImages()
{conTimeInterval = setInterval("HidingConsultantEmployers()",30000);}
function HidingConsultantEmployers()
{DisplayFeaturedInstitutes();clearInterval(conTimeInterval);}
function openURl(emp)
{window.open(emp,"","location=yes,toolbar=yes,scrollbars=yes,addressbar=yes,menubar=yes,resizable=yes");}
function openCollege(col)
{window.open(col,"","location=yes,toolbar=yes,scrollbars=yes,addressbar=yes,menubar=yes,resizable=yes");}
function showFeatureDetails(i)
{if(i == 0)
{window.location.href = "Home_JobSeeker.aspx";}
if(i == 1)
{JoinInterviewRoom();}
if(i == 2)
{window.location.href = "Home_Institutions.aspx";}
if(i == 3)
{window.location.href = "Recruiter/OnlineSelection.aspx";}
if(i == 5)
{window.location.href = "Recruiter/VirtualFairs.aspx";}
}
function NavigateToMockTest(domainId)
{var width = window.screen.availWidth;var height = window.screen.availHeight;var win = window.open("JSPublicProfileView.aspx?mode=1&domain="+parseInt(domainId,10),"_blank","width=" + width + ",height=" + height + ",left=0,top=0,status=no,toolbar=no,addressbar=no,scrollbars=yes,menubar=no,location=no,resizable=yes");if(win==null)
alert("Please disable popup blocker");else
{win.moveTo(0,0);win.focus();}
}
function AdsApplyJob()
{var width = window.screen.availWidth;var height = window.screen.availHeight;var win = window.open("http://jobafair.com/Jobseekers/JobViewDetails.aspx?sk=P1OFAg0yJ9pEEiyH7GMfcA==","_blank","width=" + width + ",height=" + height + ",left=0,top=0,status=yes,toolbar=yes,addressbar=yes,scrollbars=yes,menubar=yes,location=yes,resizable=yes");if(win==null){alert("Please disable popup blocker");}
else
{win.focus();}
}

