var objX=0;
var objY=0;
function ShowEventDetailsByEventId(date,eventId)
{
xmlHttpEvent=null;
xmlHttpEvent=GetXmlHttpEventObject();
var objpopup;
objpopup=document.getElementById("divEventpopup");
if(objpopup)
{
if(objpopup.style.display=="block")
{
objpopup.style.display=="none";
}
}
if(xmlHttpEvent==null)
{
alert("Browser does not support HTTP Request.");
return;
}
var url="GetEventDetails.aspx";
url=url+"?date="+date+"&eventId="+eventId;
xmlHttpEvent.onreadystatechange=stateChangedShowEventCalenderEventDetails;
xmlHttpEvent.open("GET",url,true);
xmlHttpEvent.send(null);
document.getElementById("divLoadingBar").style.display="block";
}
function ShowEventDetailsByCategoryId(date,categoryId)
{
xmlHttpEvent=null;
xmlHttpEvent=GetXmlHttpEventObject();
var objpopup;
objpopup=document.getElementById("divEventpopup");
if(objpopup)
{
if(objpopup.style.display=="block")
{
objpopup.style.display=="none";
}
}
if(xmlHttpEvent==null)
{
alert("Browser does not support HTTP Request.");
return;
}
var url="GetEventDetails.aspx";
url=url+"?date="+date+"&categoryId="+categoryId;
xmlHttpEvent.onreadystatechange=stateChangedShowEventCalenderEventDetails;
xmlHttpEvent.open("GET",url,true);
xmlHttpEvent.send(null);
document.getElementById("divLoadingBar").style.display="block";
}
function ShowEventDetailsByEventDate(date)
{
xmlHttpEvent=null;
xmlHttpEvent=GetXmlHttpEventObject();
var objpopup;
objpopup=document.getElementById("divEventpopup");
if(objpopup)
{
if(objpopup.style.display=="block")
{
objpopup.style.display=="none";
}
}
if(xmlHttpEvent==null)
{
alert("Browser does not support HTTP Request.");
return;
}
var url="GetEventDetails.aspx";
url=url+"?date="+date;
xmlHttpEvent.onreadystatechange=stateChangedShowEventCalenderEventDetails;
xmlHttpEvent.open("GET",url,true);
xmlHttpEvent.send(null);
document.getElementById("divLoadingBar").style.display="block";
}
function stateChangedShowEventCalenderEventDetails()
{
if(xmlHttpEvent.readyState==4)
{
document.getElementById("divLoadingBar").style.display="none";
document.getElementById("divEventDetails").innerHTML=xmlHttpEvent.responseText;
document.getElementById("hidUserMessage").value="ShownEventDetails";
ShowModalPopup("divEventDetails","Event Details");
}
}
function GetXmlHttpEventObject()
{
var objXMLHttp=null;
if(window.XMLHttpRequest)
{
objXMLHttp=new XMLHttpRequest();
}
else if(window.ActiveXObject)
{
objXMLHttp=new ActiveXObject("Microsoft.XMLHTTP");
}
return objXMLHttp;
}
function CheckSearchText()
{
var temp4=document.getElementById("ddlMonth");
var temp5=document.getElementById("ddlYear");
if(temp4.selectedIndex!=0||temp5.selectedIndex!=0)
{
if(temp4.selectedIndex==0||temp5.selectedIndex==0)
{
ShowMessageBox("Please select both month and year to search.");
return false;
}
}
return true;
}
function trim(stringToTrim)
{
return stringToTrim.replace(/^\s+|\s+$/g,"");
}
function checkAccess(status)
{
if(status==0)
{
document.getElementById("showBasicInfo").style.visibility="hidden";
}
else
{
document.getElementById("showBasicInfo").style.visibility="visible";
}
}
function customizePageAccess(status)
{
if(status==0)
{
document.getElementById("customizePage").style.visibility="hidden";
}
else
{
document.getElementById("customizePage").style.visibility="visible";
}
}
function DisplaySuccessMessage(status)
{
var msg="";
if(status=="submit")
{
msg="Congratulations, Event added successfully.";
ShowMessageBox(msg);
}
else
if(status=="update")
{
msg="<br/>"+"Congratulations, Event updated successfully."+"<br/>";
ShowMessageBox(msg);
}
else
if(status=="error")
{
msg="<br/>"+"Error occured while saving the event details. Please try again."+"<br/>";
alert(msg);
}
return true;
}
function DisplayAddSuccessMessage()
{
var msg="";
msg="Congratulations, Event added successfully. It will be visible to you after admin approval."+"<br/>";
ShowMessageBox(msg);
return true;
}
function DisplaySuccessMessageForApproval(status)
{
var msg="";
if(status=="submit")
{
msg="<br/>"+"Congratulations, Event added successfully."+"<br/>";
ShowMessageBox(msg);
}
else
if(status=="update")
{
msg="<br/>"+"Congratulations, Event updated successfully."+"<br/>";
ShowMessageBox(msg);
}
else if(status=="error")
{
msg="<br/>"+"Error occured while saving the event details. Please try again."+"<br/>";
alert(msg);
}
return true;
}
function EventExistsMessage()
{
var registrationErrorsDiv=document.getElementById("WarningMsgs_RegistrationErrors");
registrationErrorsDiv.style.display="block";
document.getElementById("WarningMsgs_divWarningInfo").style.display="block";
var msg="This event already exists !";
registrationErrorsDiv.innerHTML=msg;
return false;
}
function btnAddCommentCancel_OnClock()
{
document.getElementById("txtCommentDescription").value="";
document.getElementById("WarningMsgs_RegistrationErrors").innerHTML="";
document.getElementById("WarningMsgs_RegistrationErrors").style.display="none";
document.getElementById("WarningMsgs_divWarningInfo").style.display="none";
return closepopup('pnlComment');
}
function ShowMoreFileAttachments()
{
document.getElementById("divMoreAttachments").style.display="block";
}
function CheckBlank()
{
var i=0;
var temp;
var flag=false;
for(i=1;i<6;i++)
{
temp="PhotoUpload"+i;
temp=document.getElementById(temp);
if(temp.value!=""&&temp.value!=null)
{
flag=true;
break;
}
}
if(flag==false)
{
temp=document.getElementById("lblPhotoUploadErrors");
temp.innerHTML="Error : A file name must be specified.";
return false;
}
else
{
return true;
}
}
function ValidateComments()
{
errors="<ul>";
var status=true;
mandatoryFieldsErrorFlag=false;
var alertName="Description ";
var varTemp=document.getElementById("txtCommentDescription");
if(varTemp!=null)
{
var len=trim(varTemp.value).length;
if(len>1024)
{
errors+=alertName+sDescription_Message+'<br/>';
status=false;
}
if(len==0)
{
errors+=alertName+sDescription_MessageBlank+'<br/>';
status=false;
}
if(status==false)
{
var registrationErrorsDiv=document.getElementById("WarningMsgs_RegistrationErrors");
if(registrationErrorsDiv!=null)
{
registrationErrorsDiv.style.display="block";
document.getElementById("WarningMsgs_divWarningInfo").style.display="block";
errors+='</ul>';
registrationErrorsDiv.innerHTML="";
registrationErrorsDiv.innerHTML=errors;
}
return false;
}
else
return true;
}
}
function checkEventDistance()
{
var distanceCount=document.getElementById("lbxDistances").options.length-1;
var distanceOtherSelected=document.getElementById("lbxDistances").options[distanceCount].selected;
if(distanceOtherSelected)
{
document.getElementById("txtOtherDistance").style.display="block";
document.getElementById("lblOtherDistance").style.display="block";
if(document.getElementById("txtDistanceMessage")!=null)
{
document.getElementById("txtDistanceMessage").style.display="block";
}
}
else
{
document.getElementById("txtOtherDistance").value="";
document.getElementById("txtOtherDistance").style.display="none";
document.getElementById("lblOtherDistance").style.display="none";
if(document.getElementById("txtDistanceMessage")!=null)
{
document.getElementById("txtDistanceMessage").style.display="none";
}
}
}
function CheckImportFileType()
{
var FileName=document.getElementById("ImportEvents_LogFileUpload").value;
var extension=FileName.substring(FileName.length-3);
var validFileStatus=false;
errors="";
if(!FileName)
{
validFileStatus=false;
errors+="Please select file to upload. <br/>";
}
else
{
if(extension=="xls"||extension=="XLS")
{
validFileStatus=true;
}
else
{
errors+="Only excel .xls file type is allowed. ";
validFileStatus=false;
}
}
if(validFileStatus==false)
{
var ErrorsDiv=document.getElementById("ImportEvents_ValidationWarning_RegistrationErrors");
ErrorsDiv.style.display="block";
errors+='</ul>';
ErrorsDiv.innerHTML="";
ErrorsDiv.innerHTML=errors;
document.getElementById("ImportEvents_ValidationWarning_divWarningInfo").style.display="block";
}
return validFileStatus;
}
function ShowImportEvents()
{
document.getElementById("ImportEvents_ValidationWarning_divWarningInfo").style.display="none";
ShowModalPopup('dwindowimportevents','Add Event - Import Events Data');
return false;
}
function AddEventToMyCalendar(EventId,btnId)
{
document.getElementById("confirmBox_hidButtonId").value=btnId;
document.getElementById("hidRecordId").value=EventId;
ShowConfirmBox('Would you like to add this event into your personal event calendar?');
return false;
}
function CreateFormEventCalendar(FileName,EventId)
{
var form=document.createElement("form");
form.method='post';
form.enctype='multipart/form-data';
form.setAttribute('accept-charset','utf-8');
var urlValue=FileName;
var currentEventId=EventId;
var imageextension=FileName.substring(FileName.length-3);
var currUrl=String(self.location);
var startPos=currUrl.indexOf("WebPages");
currUrl=currUrl.substring(0,startPos);
urlValue=currUrl+"EventImages/"+currentEventId+"/"+urlValue;
var snipshotoutputoptions="{ 'size': {'max': {'width':"+550+", 'height': "+350+" },"+
" 'min': {'width': "+100+", 'height': "+100+" }"+
" },"+
" 'filetype': '"+imageextension+"' }";
addInputElement(document,form,"snipshot_input",urlValue);
urlValue=currUrl+"WebPages/EventCalendar/EventCalenderSnapsCallback.aspx";
addInputElement(document,form,"snipshot_callback",urlValue);
addInputElement(document,form,"snipshot_callback_agent","user");
addInputElement(document,form,"snipshot_output_options",snipshotoutputoptions);
addInputElement(document,form,"snipshot_output","file");
document.body.appendChild(form);
form.action="http://services.snipshot.com/";
form.submit();
document.body.removeChild(form);
return false;
}
function addInputElement(doc,form,name,value)
{
var e=doc.createElement('input');
e.name=name;
e.value=value;
form.appendChild(e);
}
function ViewAddCommentPopupDisplay()
{
var userid=document.getElementById('hidUserId').value;
if(userid!="0"&&userid!="")
{
ShowModalPopup('pnlComment','Add Comments');
}
else
{
ShowMessageBox("Please Login to Add Comments");
}
}
function showLogoImageUpload()
{
var checkdesignatedevent=document.getElementById("checkdesignatedevent");
if(checkdesignatedevent.checked)
{
document.getElementById("tbluploadlogo").style.display="block";
}
else
{
document.getElementById("lbllogoimage").style.display="none";
document.getElementById("txtLogoImage").style.display="none";
document.getElementById("lnklogoimageRemove").style.display="none";
document.getElementById("tbluploadlogo").style.display="none";
}
}
function showLogoImagecontents()
{
var checkdesignatedevent=document.getElementById("checkdesignatedevent");
if(checkdesignatedevent.checked)
{
document.getElementById("lbllogoimage").style.display="block";
document.getElementById("txtLogoImage").style.display="block";
document.getElementById("lnklogoimageRemove").style.display="block";
document.getElementById("tbluploadlogo").style.display="block";
}
else
{
document.getElementById("lbllogoimage").style.display="block";
document.getElementById("txtLogoImage").style.display="block";
document.getElementById("lnklogoimageRemove").style.display="block";
document.getElementById("tbluploadlogo").style.display="none";
}
}
function showAfterRemoveLogoImagecontents()
{
document.getElementById("lbllogoimage").style.display="none";
document.getElementById("txtLogoImage").style.display="none";
document.getElementById("lnklogoimageRemove").style.display="none";
document.getElementById("tbluploadlogo").style.display="block";
}
function ShowEventDetailsPopupByEventId(EventId,categoryId)
{
xmlHttpEvent=null;
xmlHttpEvent=GetXmlHttpEventObject();
var objpopup=document.getElementById("divEventpopup");
if(objpopup)
{
if(objpopup.style.display=="block")
{
objpopup.style.display=="none";
}
}
if(xmlHttpEvent==null)
{
alert("Browser does not support HTTP Request.");
return;
}
var url="GetEventDetails.aspx";
url=url+"?eventId="+EventId+"&categoryId="+categoryId;
xmlHttpEvent.onreadystatechange=stateChangedShowEventCalenderEventDetails;
xmlHttpEvent.open("GET",url,true);
xmlHttpEvent.send(null);
document.getElementById("divLoadingBar").style.display="block";
}
function RadioCheckedChanged()
{
var rdbtnimage=document.getElementById("Sponsor1_SponsorSettings1_rdbtnimage");
var rdbtntext=document.getElementById("Sponsor1_SponsorSettings1_rdbtntext");
var rdbtnone=document.getElementById("Sponsor1_SponsorSettings1_rdbtnone");
var trshowsponsertext=document.getElementById("trshowsponsertext");
var trshowsponserimage=document.getElementById("trshowsponserimage");
if(rdbtntext.checked)
{
document.getElementById("trshowsponserimage").style.display="none";
document.getElementById("trshowsponsertext").style.display="block";
document.getElementById('Sponsor1_SponsorSettings1_lblSponsortext').innerHTML="Sponsor text";
}
if(rdbtnimage.checked)
{
document.getElementById("trshowsponserimage").style.display="block";
document.getElementById("trshowsponsertext").style.display="none";
document.getElementById('Sponsor1_SponsorSettings1_lblSponsortext').innerHTML="Sponsor image";
}
if(rdbtnone.checked)
{
document.getElementById("trshowsponserimage").style.display="none";
document.getElementById("trshowsponsertext").style.display="none";
document.getElementById('Sponsor1_SponsorSettings1_lblSponsortext').innerHTML="";
}
}
function showDesignatedPace(showvalue)
{
var trdesignatedevent=document.getElementById("trdesignatedevent");
if(showvalue=="true")
{
trdesignatedevent.style.display="block";
}
else
{
trdesignatedevent.style.display="none";
}
}
function ResetSponsorSeetingsAll()
{
document.getElementById("Sponsor1_SponsorSettings1_rdbtntext").checked=false;
document.getElementById("Sponsor1_SponsorSettings1_rdbtnimage").checked=true;
document.getElementById("Sponsor1_SponsorSettings1_rdbtnone").checked=false;
document.getElementById("Sponsor1_SponsorSettings1_txtsponsortext").value="";
document.getElementById("trshowsponserimage").style.display='block';
document.getElementById('Sponsor1_SponsorSettings1_lblSponsortext').innerHTML="Sponsor image";
document.getElementById("trshowsponsertext").style.display='none';
document.getElementById("Sponsor1_SponsorSettings1_fileuploadImage").setAttribute("value",null);
var registrationErrorsDiv=document.getElementById("Sponsor1_SponsorSettings1_RegistrationErrors");
registrationErrorsDiv.style.display="none";
document.getElementById("Sponsor1_SponsorSettings1_divWarningInfo").style.display="none";;
return true;
}
function DeleteCommentConfirmation(RecordId,btnId)
{
document.getElementById("confirmBox_hidButtonId").value=btnId;
document.getElementById("hidRecordId").value=RecordId;
ShowConfirmBox('Are you sure you want to delete this comment?');
return false;
}
function loadUPEventHandler()
{
EventsMessage=document.getElementById("hidEventsMessage");
if(EventsMessage!=null&&EventsMessage!="")
{
var EventsMessageVal=EventsMessage.value;
}
}
function AddToMyCalendarStatus(status)
{
var msg="";
if(status==1)
{
msg="Congratulations! This event was successfully added to your personal event calendar.";
ShowMessageBox(msg);
}
else
if(status==0)
{
msg="Error occured while adding an event to your Event Calendar. Please try again.";
alert(msg);
}
return false;
}
function DeleteEventPhotoConfirmation(RecordId,btnId)
{
document.getElementById("confirmBox_hidButtonId").value=btnId;
document.getElementById("hidRecordId").value=RecordId;
ShowConfirmBox('Are you sure you want to delete the Photo?');
return false;
}
function DeleteAssetPhotoConfirmation(RecordId,btnId)
{
document.getElementById("confirmBox_hidButtonId").value=btnId;
document.getElementById("hidRecordId").value=RecordId;
ShowConfirmBox('Are you sure you want to delete the Photo?');
return false;
}
function DeleteEventConfirmation(RecordId,btnId)
{
document.getElementById("confirmBox_hidButtonId").value=btnId;
document.getElementById("hidRecordId").value=RecordId;
ShowConfirmBox('Would you like to delete this event?');
return false;
}
function ApproveEventConfirmation(RecordId,btnId)
{
document.getElementById("confirmBox_hidButtonId").value=btnId;
document.getElementById("hidRecordId").value=RecordId;
ShowConfirmBox('Would you like to approve this event?');
return false;
}
function HandleException()
{
if(!document.all)
{
window.onbeforeunload=function()
{
Sys.WebForms.PageRequestManager.getInstance().add_endRequest(endRequest);
}
}
}
function endRequest(sender,e)
{
var err=e.get_error();
if(err)
{
if(err.name=="Sys.WebForms.PageRequestManagerServerErrorException")
{
e.set_errorHandled(true);
}
if(err.name=="Sys.WebForms.PageRequestManagerParserErrorException")
{
e.set_errorHandled(true);
}
}
}
function ValidateAddEventForm()
{
errors="";
mandatoryFieldsErrorFlag=false;
var status=ValidateAddEventFormRoutines();
if(status==false)
{
var registrationErrorsDiv=document.getElementById("WarningMsgs_RegistrationErrors");
registrationErrorsDiv.style.display="block";
registrationErrorsDiv.innerHTML="";
registrationErrorsDiv.innerHTML=errors;
document.getElementById("WarningMsgs_divWarningInfo").style.display="block";
return false;
}
else
{
return true;
}
}
function ValidateAddEventFormRoutines()
{
var status=true;
var alertName;
var varTemp;
var varTemp1;
var isMandatory='True';
varTemp=document.getElementById("txtEventName");
alertName="Event Name";
isMandatory='True';
if(bValidate(varTemp,"General",isMandatory,alertName)!=true)
{status=false;
return false;
}
varTemp=document.getElementById("txtStartDate");
alertName="Event Date";
isMandatory='True';
if(varTemp.value=="")
{
if(isMandatory=="True")
{
errors+=alertName+" can not be blank."+'<br/>';
mandatoryFieldsErrorFlag=true;
}
varTemp.focus();
status=false;
return false;
}
if(bValidate(varTemp,"Date",isMandatory,alertName)!=true)
{status=false;
return false;
}
varTemp=document.getElementById("ddlEventCategory");
alertName="Event Category";
isMandatory='True';
if(bValidate(varTemp,"",isMandatory,alertName)!=true)
{
status=false;
}
varTemp=document.getElementById("lbxDistances");
var distanceCount=document.getElementById("lbxDistances").options.length-1;
var distanceOtherSelected=document.getElementById("lbxDistances").options[distanceCount].selected;
var distanceStatus=false;
var distanceCounter=0;
alertName="Event Distance";
isMandatory='True';
for(distanceCounter=0;distanceCounter<=distanceCount;distanceCounter++)
{
if(document.getElementById("lbxDistances").options[distanceCounter].selected)
{
distanceStatus=true;
}
}
if(distanceStatus==false)
{
errors+='Please select '+alertName+'.<br/>';
document.getElementById("lbxDistances").focus();
return false;
}
else
{
if(distanceOtherSelected)
{
if(trim(document.getElementById("txtOtherDistance").value)=="")
{
errors+='Please enter other distance.<br/>';
document.getElementById("txtOtherDistance").focus();
return false;
}
}
}
varTemp=document.getElementById("txtAddress");
alertName="Event Address";
isMandatory='False';
if(bValidate(varTemp,"AlphaNumWithSpaceApostropheCommaColon",isMandatory,alertName)!=true)
{
status=false;
return false;
}
varTemp=document.getElementById("txtCity");
alertName="Event City";
isMandatory='False';
if(bValidate(varTemp,"AlphaWithSpace",isMandatory,alertName)!=true)
{status=false;
return false;
}
varTemp=document.getElementById("ddlCountry");
alertName="Event Country";
isMandatory='True';
if(varTemp.selectedIndex==0)
{
errors+='Please select '+alertName+'.<br/>';
mandatoryFieldsErrorFlag=true;
document.getElementById("ddlCountry").focus();
return false;
}
var varTempstate=document.getElementById("ddlState");
alertName="Event State";
isMandatory='True';
if(varTemp.selectedIndex==32||varTemp.selectedIndex==190)
{
if(varTempstate.selectedIndex==0)
{
errors+='Please select '+alertName+'.'+'<br/>';
mandatoryFieldsErrorFlag=true;
document.getElementById("ddlState").focus();
return false;
}
}
varTemp=document.getElementById("txtZipCode");
alertName="Event Zip Code";
isMandatory='False';
if(bValidate(varTemp,"PostalCode",isMandatory,alertName)!=true)
{
status=false;
return false;
}
varTemp=document.getElementById("txtContactDetails");
alertName="Contact Information";
isMandatory='False';
if(bValidate(varTemp,"Contact",isMandatory,alertName)!=true)
{
status=false;
return false;
}
varTemp=document.getElementById("txtDescription");
alertName="Description Field";
var len=varTemp.value.length;
if(len>1024)
{
errors+=alertName+sDescription_Message+'<br/>';
status=false;
}
var i=0;
for(i=1;i<=5;i++)
{
var fileUploadId="PhotoUpload"+i;
var fileUploadObj=document.getElementById(fileUploadId);
if(fileUploadObj!=null)
{
if(fileUploadObj.value!=null&&fileUploadObj.value!="")
{
var fileUploadStarus=CheckImageFileType(fileUploadObj.value);
if(!fileUploadStarus)
{
status=false;
}
}
}
}
var FileUploadlogoObj=document.getElementById("FileUploadlogo");
if(FileUploadlogoObj!=null)
{
if(FileUploadlogoObj.value!=null&&FileUploadlogoObj.value!="")
{
var fileUploadStatus=CheckImageFileType(FileUploadlogoObj.value);
if(!fileUploadStatus)
{
status=false;
}
}
}
return status;
}
function ValidateValues()
{
errors="";
mandatoryFieldsErrorFlag=false;
var status=ValidateSponsorSettingsControl();
if(status==false)
{
var registrationErrorsDiv=document.getElementById("Sponsor1_SponsorSettings1_RegistrationErrors");
registrationErrorsDiv.style.display="block";
document.getElementById("Sponsor1_SponsorSettings1_divWarningInfo").style.display="block";;
registrationErrorsDiv.innerHTML="";
registrationErrorsDiv.innerHTML=errors;
return false;
}
else
{
return true;
}
}
function ValidateSponsorSettingsControl()
{
var status=true;
var alertName;
var varTemp;
var varTemp1;
var isMandatory='True';
var rdbtntext=document.getElementById("Sponsor1_SponsorSettings1_rdbtntext");
var rdbtnimage=document.getElementById("Sponsor1_SponsorSettings1_rdbtnimage");
var rdbtnone=document.getElementById("Sponsor1_SponsorSettings1_rdbtnone");
if((rdbtntext.checked==false)&&(rdbtnimage.checked==false)&&(rdbtnone.checked==false))
{
flag=false;
errors+='Please select the  sponsor type.'+'<br/>';
document.getElementById("Sponsor1_SponsorSettings1_rdbtntext").focus();
return false;
}
if(rdbtntext.checked)
{
var varTemp=document.getElementById("Sponsor1_SponsorSettings1_txtsponsortext");
alertName="Sponsor Text Field";
isMandatory='True';
if(varTemp.value==""||varTemp.value==null)
{
if(isMandatory=="True")
{
errors+="Please enter sponsor text field "+'<br/>';
mandatoryFieldsErrorFlag=true;
}
varTemp.focus();
status=false;
return false;
}
if(bValidate(varTemp,"",isMandatory,alertName)!=true)
{status=false;
return false;
}
}
if(rdbtnimage.checked)
{
var FileUploadlogoObj=document.getElementById("Sponsor1_SponsorSettings1_fileuploadImage");
alertName="Upload image field";
var isMandatory='True';
if(FileUploadlogoObj!=null&&FileUploadlogoObj!="")
{
if(FileUploadlogoObj.value!=null&&FileUploadlogoObj.value!="")
{
var fileUploadStatus=CheckImageFileType(FileUploadlogoObj.value);
if(!fileUploadStatus)
{
status=false;
return false;
}
}
else
{
errors+="Please select image to upload."+'<br/>';
mandatoryFieldsErrorFlag=true;
FileUploadlogoObj.focus();
status=false;
return false;
}
}
}
}
function EnableDropDownControls()
{
var arrobj=document.getElementById("ddlEventCategory");
if(arrobj!=null)
{
arrobj.style.visibility="visible";
}
arrobj=document.getElementById("lbxDistances");
if(arrobj!=null)
{
arrobj.style.visibility="visible";
}
}
function DisableDropDownControls()
{
var arrobj=document.getElementById("ddlEventCategory");
if(arrobj!=null)
{
arrobj.style.visibility="hidden";
}
arrobj=document.getElementById("lbxDistances");
if(arrobj!=null)
{
arrobj.style.visibility="hidden";
}
}
