var activity = new Array(); var select_activity = new Array(); function showImage(cellId,aid,flg){ var cellObj = document.getElementById(cellId); var thumbCellId = cellId + '_thumb'; var newDiv = document.getElementById(thumbCellId) if(newDiv){ if(flg==0){ newDiv.parentNode.removeChild(newDiv); }else{ newDiv.parentNode.removeChild(newDiv); var newDiv = document.createElement('DIV'); newDiv.id = thumbCellId; newDiv.style.position = 'absolute'; newDiv.innerHTML = ''; newDiv.noWrap = true; newDiv.style.backgroundColor = '#BBBBBB'; newDiv.style.border = '1px solid #000'; cellObj.appendChild(newDiv); } }else{ var newDiv = document.createElement('DIV'); newDiv.id = thumbCellId; newDiv.style.position = 'absolute'; newDiv.innerHTML = ''; newDiv.noWrap = true; newDiv.style.backgroundColor = '#BBBBBB'; newDiv.style.border = '1px solid #000'; cellObj.appendChild(newDiv); } } dt = new Date(); function init_ajax(){ var xmlhttp=false; /*@cc_on @*/ /*@if (@_jscript_version >= 5) // JScript gives us Conditional compilation, we can cope with old IE versions. // and security blocked creation of the objects. try { xmlhttp = new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { try { xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); } catch (E) { xmlhttp = false; } } @end @*/ if (!xmlhttp && typeof XMLHttpRequest!='undefined') { xmlhttp = new XMLHttpRequest(); } return xmlhttp; } expObj = new Array(); //Required for the drop downs in accomodations... function changeaction(){ var formObj = document.getElementById('Confirm_form'); url="http://"; url+=location.hostname; url+=location.pathname; url+="?action=order"; formObj.action=url; formObj.submit(); } function showHideImage(){ Obj = document.getElementById('dispType'); Obj1 = document.getElementById('leftImage'); Obj2 = document.getElementById('horImage'); if(num==1){ Obj.style.visibility = 'visible'; Obj.style.display = 'block'; }else{ Obj.style.visibility = 'hidden'; Obj.style.display = 'none'; } } function change_bg(){ dt = new Date(); bg1 = new Image(); //morning bg1.src = '/images/bk.jpg'; bg2 = new Image(); //Day bg2.src = '/images/bk3.jpg'; bg3 = new Image(); //night bg3.src = '/images/bk2.jpg'; objBody = document.body; if(dt.getHours() >= 3 && dt.getHours() <= 11){ objBody.style.backgroundImage = 'url(' + bg1.src + ')'; }else if(dt.getHours() >= 12 && dt.getHours() <= 17){ objBody.style.backgroundImage = 'url(' + bg2.src + ')'; }else if(dt.getHours() >= 18 && dt.getHours() <= 23){ objBody.style.backgroundImage = 'url(' + bg3.src + ')'; }else if(dt.getHours() >= 0 && dt.getHours() <= 2){ objBody.style.backgroundImage = 'url(' + bg31.src + ')'; } objBody.style.backgroundColor = '#000'; } function goto_link(obj){ switch(obj.value){ case '1': window.location.href = '/admin/admin_gallery.php?action=list'; break; case '2': window.location.href = '/admin/admin_media.php?action=listdoc'; break; case '3': window.location.href = '/admin/admin_media.php?action=list'; break; default: window.location.href = '/admin/admin_pages.php?id=6'; break; } } function fetch_amenities(thisObj){ for(i=0;i=0;j--){ selectbox.remove(j); } } function signup(obj){ if(obj.value == ''){ alert('Please provide your E-mail ID'); return; } if(validate_email(obj)){ document.emailform.submit(); } } function validate_email(obj) { obj.value = obj.value.toLowerCase(); str = obj.value; var at="@" var dot="." var lat=str.indexOf(at) var lstr=str.length var ldot=str.indexOf(dot) if (str.indexOf(at)==-1){ alert ('Invalid E-mail.Please verify.'); return false; } if (str.indexOf(at)==-1 || str.indexOf(at)==0 || str.indexOf(at)==lstr){ alert ('Invalid E-mail.Please verify.'); return false; } if (str.indexOf(dot)==-1 || str.indexOf(dot)==0 || str.indexOf(dot)==lstr){ alert ('Invalid E-mail.Please verify.'); return false; } if (str.indexOf(at,(lat+1))!=-1){ alert ('Invalid E-mail.Please verify.'); return false; } if (str.substring(lat-1,lat)==dot || str.substring(lat+1,lat+2)==dot){ alert ('Invalid E-mail.Please verify.'); return false; } if (str.indexOf(dot,(lat+2))==-1){ alert ('Invalid E-mail.Please verify.'); return false; } if (str.indexOf(" ")!=-1){ alert ('Invalid E-mail.Please verify.'); return false; } return true; } function clear_field(obj){ obj.value = ''; } function clear_search(obj){ if(obj.value==' search') obj.value = ''; } function check_empty(formObj){ var frm = document.forms[formObj]; var el = frm.elements; for(i=0;i', '') as status"; column['txtIndex'] = 'status'; column['numIndex'] = '4'; column['order'] = 0; column['orderField'] = 'active'; column['url'] = '#'; column['target'] = '_blank'; column['css'] = 'listCell1'; column['image'] = ''; column['jsEvent'] = 'ondblclick'; column['jsFunc'] = 'changeStatus'; column['width'] = '45'; column['align'] = 'center'; listItem.addColumn(column); listItem.table = table; listItem.order = 'order_no'; listItem.where['parent_id'] = recid; listItem.orderType = 'ASC'; listItem.showPaging = 1; listItem.limitNum = 15; listItem.cellId = 'listpages'; listItem.width = '720'; listItem.listItems(); } function save_subcat(obj){ xmlhttp = init_ajax(); xmlhttp.open("GET",'../ajax/update_record.php?value=' + obj.value + '&name=' + obj.name + '&x=' + dt.getTime() + dt.getSeconds()); xmlhttp.onreadystatechange = function(){ if (xmlhttp.readyState == 4 && xmlhttp.status == 200){ if(xmlhttp.responseText == 'errUpdate'){ alert('Error updating record'); return; }else{ alert('Record updated sucessfully'); } } } xmlhttp.send(null); } function ShowDataIds(type,id,table,divi) { ADAjaxPostData('media_attach.php', 'type=' + type + "&id=" + id + "&table=" + table, divi); //ADAjaxPostData('media_attach.php', 'type=' + type, divi); } function showHideText(Chkobj,boxName){ boxObj=document.getElementById(boxName); if (Chkobj.checked == true) { boxObj.style.visibility = "visible"; boxObj.style.display= "block"; }else{ boxObj.style.visibility = "hidden"; boxObj.style.display= "none"; } } function get_events(obj){ xmlhttp = init_ajax(); if(obj.childNodes.length < 2){ xmlhttp.open("GET",'ajax/event_summary.php?period=' + obj.id + '&x=' + dt.getTime() + dt.getSeconds()); xmlhttp.onreadystatechange = function(){ if (xmlhttp.readyState == 4 && xmlhttp.status == 200){ split_rows = xmlhttp.responseText.split('#|#'); for(i=0;i'; data+= 'Click here to view your list...'; newDiv.innerHTML = data; cellObj.appendChild(newDiv); } function delete_cart_item(divi, id){ ADAjaxPostData('delete_cart_item.php', "&id=" + id, divi); } function get_category(obj){ xmlhttp = init_ajax(); if(obj.childNodes.length < 2){ xmlhttp.open("GET",'ajax/acc_cat_summary.php?period=' + obj.id + '&x=' + dt.getTime() + dt.getSeconds()); xmlhttp.onreadystatechange = function(){ if (xmlhttp.readyState == 4 && xmlhttp.status == 200){ split_rows = xmlhttp.responseText.split('#|#'); for(i=0;i