function sack(file){ this.AjaxFailedAlert = "Your browser does not support the enhanced functionality of this website, and therefore you will have an experience that differs from the intended one.\n"; this.requestFile = file; this.method = "GET"; this.URLString = ""; this.encodeURIString = true; this.execute = false; this.onLoading = function() { }; this.onLoaded = function() { }; this.onInteractive = function() { }; this.onCompletion = function() { }; this.createAJAX = function() { try { this.xmlhttp = new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { try { this.xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); } catch (err) { this.xmlhttp = null; } } if(!this.xmlhttp && typeof XMLHttpRequest != "undefined") this.xmlhttp = new XMLHttpRequest(); if (!this.xmlhttp){ this.failed = true; } }; this.setVar = function(name, value){ if (this.URLString.length < 3){ this.URLString = name + "=" + value; } else { this.URLString += "&" + name + "=" + value; } } this.encVar = function(name, value){ var varString = encodeURIComponent(name) + "=" + encodeURIComponent(value); return varString; } this.encodeURLString = function(string){ varArray = string.split('&'); for (i = 0; i < varArray.length; i++){ urlVars = varArray[i].split('='); if (urlVars[0].indexOf('amp;') != -1){ urlVars[0] = urlVars[0].substring(4); } varArray[i] = this.encVar(urlVars[0],urlVars[1]); } return varArray.join('&'); } this.runResponse = function(){ eval(this.response); } this.runAJAX = function(urlstring){ this.responseStatus = new Array(2); if(this.failed && this.AjaxFailedAlert){ alert(this.AjaxFailedAlert); } else { if (urlstring){ if (this.URLString.length){ this.URLString = this.URLString + "&" + urlstring; } else { this.URLString = urlstring; } } if (this.encodeURIString){ var timeval = new Date().getTime(); this.URLString = this.encodeURLString(this.URLString); this.setVar("rndval", timeval); } if (this.element) { this.elementObj = document.getElementById(this.element); } if (this.xmlhttp) { var self = this; if (this.method == "GET") { var totalurlstring = this.requestFile + "?" + this.URLString; this.xmlhttp.open(this.method, totalurlstring, true); } else { this.xmlhttp.open(this.method, this.requestFile, true); } if (this.method == "POST"){ try { this.xmlhttp.setRequestHeader('Content-Type','application/x-www-form-urlencoded') } catch (e) {} } this.xmlhttp.send(this.URLString); this.xmlhttp.onreadystatechange = function() { switch (self.xmlhttp.readyState){ case 1: self.onLoading(); break; case 2: self.onLoaded(); break; case 3: self.onInteractive(); break; case 4: self.response = self.xmlhttp.responseText; self.responseXML = self.xmlhttp.responseXML; self.responseStatus[0] = self.xmlhttp.status; self.responseStatus[1] = self.xmlhttp.statusText; self.onCompletion(); if(self.execute){ self.runResponse(); } if (self.elementObj) { var elemNodeName = self.elementObj.nodeName; elemNodeName.toLowerCase(); if (elemNodeName == "input" || elemNodeName == "select" || elemNodeName == "option" || elemNodeName == "textarea"){ self.elementObj.value = self.response; } else { self.elementObj.innerHTML = self.response; } } self.URLString = ""; break; } }; } } }; this.createAJAX(); } // ajax-dynamic-content.js contents var enableCache = true; var jsCache = new Array(); var dynamicContent_ajaxObjects = new Array(); function ajax_showContent(divId,ajaxIndex,url) { document.getElementById(divId).innerHTML = dynamicContent_ajaxObjects[ajaxIndex].response; if(enableCache){ jsCache[url] = dynamicContent_ajaxObjects[ajaxIndex].response; } dynamicContent_ajaxObjects[ajaxIndex] = false; } function ajax_loadContent(divId,url) { if(enableCache && jsCache[url]){ document.getElementById(divId).innerHTML = jsCache[url]; return; } var ajaxIndex = dynamicContent_ajaxObjects.length; document.getElementById(divId).innerHTML = 'Loading content - please wait'; dynamicContent_ajaxObjects[ajaxIndex] = new sack(); if(url.indexOf('?')>=0){ dynamicContent_ajaxObjects[ajaxIndex].method='GET'; var string = url.substring(url.indexOf('?')); url = url.replace(string,''); string = string.replace('?',''); var items = string.split(/&/g); for(var no=0;no0&&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&&iperiodPos){ alert("Please check your email address"); enquiry.email.focus(); return false; }; if ( periodPos+3 > email.length) { alert("Please check you email address"); enquiry.email.focus(); return false; }; if (enquiry.blot.value=="") { alert ("Please enter text from the image in the text field."); enquiry.blot.focus(); return false; }; if ((enquiry.blot.value).toLowerCase()!=blots[enquiry.blot_hidden.value-1].toLowerCase()){ alert ("Please enter correct text from the image."); enquiry.blot.focus(); return false; }; return true; } function Next(){ if(value!=false){ document.enquiry.action="contact-action.php"; document.enquiry.method="post"; document.enquiry.submit(); } } var m_ucBtnSearch_btNn1 = new Image(); m_ucBtnSearch_btNn1.src = "../images/clicktoupload1.gif"; var m_ucBtnSearch_btHv1 = new Image(); m_ucBtnSearch_btHv1.src = "../images/clicktoupload1-over.gif"; var m_ucBtnSearch_btPh1 = new Image(); m_ucBtnSearch_btPh1.src = "../images/clicktoupload1.gif"; var m_ucBtnSearch_btNnco = new Image(); m_ucBtnSearch_btNnco.src = "../images/contact.gif"; var m_ucBtnSearch_btHvco = new Image(); m_ucBtnSearch_btHvco.src = "../images/contact-over.gif"; var m_ucBtnSearch_btPhco = new Image(); m_ucBtnSearch_btPhco.src = "../images/contact-click.gif"; function switchDiv(divId) { divSection = document.getElementById(divId); if(divSection.style.display=="none") divSection.style.display = "block"; else divSection.style.display = "none"; } //ajax_tell.js contents function xmlhttpPost1(strURL) { ActiveObject = false; if(window.XMLHttpRequest) { try { ActiveObject = new XMLHttpRequest(); } catch(e) { ActiveObject = false; } } else if(window.ActiveXObject) { try { ActiveObject = new ActiveXObject("Msxml2.XMLHTTP"); } catch(e) { try { ActiveObject = new ActiveXObject("Microsoft.XMLHTTP"); } catch(e) { ActiveObject = false; } } } if (!ActiveObject) alert("Your browser does not support AJAX!"); if(ActiveObject) { ActiveObject.onreadystatechange = processReqChange1; ActiveObject.open("GET", strURL, true); ActiveObject.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded'); ActiveObject.send(strURL); } } function processReqChange1() { if (ActiveObject.readyState == 4 || ActiveObject.readyState=="complete") { var data = ActiveObject.responseText; if(data=="Mail Sent Successfully!") { alert(data); ajax_hideTooltip(); } else { alert(data); } } } function tellafriendvalidator() { obj=document.tell_a_friend; if(obj.friend_email_id1.value==''){ alert(obj.friend_email_id1.title); setTimeout("document.tell_a_friend."+obj.friend_email_id1.name+".focus()", 30); return false; } if(obj.friend_email_id1.value!=''){ if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(obj.friend_email_id1.value)){ }else{ alert("Invalid E-mail Address! Please re-enter."); setTimeout("document.tell_a_friend.friend_email_id1.focus()", 30); return false; }} if(obj.friend_email_id2.value!=''){ if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(obj.friend_email_id2.value)){ }else{ alert("Invalid E-mail Address! Please re-enter."); setTimeout("document.tell_a_friend.friend_email_id2.focus()", 30); return false; }} if(obj.email_id.value==''){ alert(obj.email_id.title); setTimeout("document.tell_a_friend."+obj.email_id.name+".focus()", 30); return false; } if(obj.email_id.value!=''){ if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(obj.email_id.value)){ }else{ alert("Invalid E-mail Address! Please re-enter."); setTimeout("document.tell_a_friend.email_id.focus()", 30); return false; }} if(obj.message.value==''){ alert(obj.message.title); setTimeout("document.tell_a_friend."+obj.message.name+".focus()", 30); return false; } url=document.frmurl.pageurl.value; friend_email_id1=document.tell_a_friend.friend_email_id1.value; friend_email_id2=document.tell_a_friend.friend_email_id2.value; email_id=document.tell_a_friend.email_id.value; message=document.tell_a_friend.message.value; strUrl="../sendmail.php?url="+url+"&friend_email_id1="+friend_email_id1+"&friend_email_id2="+friend_email_id2+"&email_id="+email_id+"&message="+message; xmlhttpPost1(strUrl); } //ajax-tooltip.js contents /* Offset position of tooltip */ var x_offset_tooltip = 5; var y_offset_tooltip = 0; /* Don't change anything below here */ var x_newpos=0; var y_newpos=0; var flagmove=false; var flagmove2=0; var ajax_tooltipObj = false; var ajax_tooltipObj_iframe = false; var leftPos =0; var topPos =0; var curX=0; var curY=0; var pos1=0; var ajax_tooltip_MSIE = false; if(navigator.userAgent.indexOf('MSIE')>=0)ajax_tooltip_MSIE=true; function ajax_showTooltip(externalFile,inputObj,newpos,newpos2,slide1) { x_newpos=newpos; y_newpos=newpos2; if(ajax_tooltipObj){ } if(!ajax_tooltipObj) /* Tooltip div not created yet ? */ { ajax_tooltipObj = document.createElement('DIV'); ajax_tooltipObj.style.position = 'absolute'; ajax_tooltipObj.id = 'ajax_tooltipObj'; document.body.appendChild(ajax_tooltipObj); var leftDiv = document.createElement('DIV'); /* Create arrow div */ leftDiv.className='ajax_tooltip_arrow'; leftDiv.id = 'ajax_tooltip_arrow'; ajax_tooltipObj.appendChild(leftDiv); var contentDiv = document.createElement('DIV'); /* Create tooltip content div */ contentDiv.className = 'ajax_tooltip_content'; ajax_tooltipObj.appendChild(contentDiv); contentDiv.id = 'ajax_tooltip_content'; var contentDiv2 = document.createElement('DIV'); /* Create tooltip content div */ contentDiv2.className = 'ajax_tooltip_content2'; ajax_tooltipObj.appendChild(contentDiv2); contentDiv2.id = 'ajax_tooltip_content2'; pos1=1; if(ajax_tooltip_MSIE){ /* Create iframe object for MSIE in order to make the tooltip cover select boxes */ ajax_tooltipObj_iframe = document.createElement('