function getXMLHttp(){ var xmlHttp; try{ /*Firefox, Opera 8.0+, Safari*/ xmlHttp = new XMLHttpRequest(); } catch(e) { /*Internet Explorer*/ try { xmlHttp = new ActiveXObject("Msxml2.XMLHTTP"); } catch(e){ try { xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");} catch(e){ alert("Your browser does not support AJAX!");  return false; } } }  return xmlHttp;}
$.metadata.setType("attr","validate");$(document).ready(function(){$("#frm_sms1").validate();});function MM_showHideLayers(){var i,p,v,obj,args=MM_showHideLayers.arguments;for(i=0;i<(args.length-2);i+=3)
with(document)if(getElementById&&((obj=getElementById(args[i]))!=null)){v=args[i+2];if(obj.style){obj=obj.style;v=(v=='show')?'visible':(v=='hide')?'hidden':v;}
obj.visibility=v;}}
function MM_swapImgRestore(){var i,x,a=document.MM_sr;for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++)x.src=x.oSrc;}
function checkBlank(frm){var mo=document.getElementById('MobileNo').value;var uu=document.getElementById('url').value;var pp=document.getElementById('PlaceID').value;var name=document.getElementById('Name').value;var msg="";if(mo=="Mobile No."||mo==null||mo==""){msg='- Please Enter Your Mobile no\n';}
if(name=="Name:"||name==null||name==""){msg+='- Please Enter Your Name';}
if(msg!=""){alert(msg);}else{var xmlHttp=getXMLHttp();xmlHttp.open("GET","send_sms.php?m="+mo+"&n="+name+"&url="+uu+"&PlaceID="+pp,true);xmlHttp.send(null);xmlHttp.onreadystatechange=function()
{if(xmlHttp.readyState==4)
{if(xmlHttp.responseText=="OK"){document.getElementById('sms').innerHTML="<span style='color:green'><img src='images/success.gif' alt='Subscribe Successfully' title='Subscribe Successfully'> Successfully Subscribed</span>";}else{document.getElementById('sms').innerHTML="<span style='color:red;'><img src='images/error.gif' alt='Error' title='Error' style=''> Already Exists</span>";}}}}}
function checkBlank1(frm){var name=document.getElementById('Name1').value;var email=document.getElementById('Email1').value;var comment=document.getElementById('Comment1').value;var msg="";if(name==""||name==null){msg='- Please Enter Your Name\n';}
if(email==null||email==""){msg+='- Please Enter Your Email\n';}
if(comment==null||comment==""){msg+='- Please Enter Your Comemnts\n';}
if(msg!=""){alert(msg);}else{var xmlHttp=getXMLHttp();xmlHttp.open("GET","send_feedback.php?c="+comment+"&n="+name+"&e="+email,true);xmlHttp.send(null);xmlHttp.onreadystatechange=function()
{if(xmlHttp.readyState==4)
{
	
	if(xmlHttp.responseText=="OK"){
		document.getElementById('sms1').innerHTML="<span style='color:green'><img src='images/success.gif' alt='Subscribe Successfully' title='Subscribe Successfully'> Feedback submited successfully</span>";
	}
	else{
		document.getElementById('sms1').innerHTML="<span style='color:red;'><img src='images/error.gif' alt='Error' title='Error' style=''> Unable to submit your feedback. Please try again later.</span>";
	}
}}}}
function checkSuggestion1(frm){var name=document.getElementById('CName').value;var email=document.getElementById('CEmail').value;var comment=document.getElementById('CComment').value;var vid=document.getElementById('CVid').value;if(vid=='')
vid='0';var msg="";if(name==""||name==null){msg='- Please Enter Your Name\n';}
if(email==null||email==""){msg+='- Please Enter Your Email\n';}
if(comment==null||comment==""){msg+='- Please Enter Your Comemnts or Suggestions\n';}
if(msg!=""){alert(msg);}else{var xmlHttp=getXMLHttp();xmlHttp.open("GET","send_comment.php?c="+comment+"&n="+name+"&e="+email+"&vid="+vid,true);xmlHttp.send(null);xmlHttp.onreadystatechange=function()
{if(xmlHttp.readyState==4)
{
	if(xmlHttp.responseText=="OK"){document.getElementById('suggestion1').innerHTML="<span style='color:green'><img src='images/success.gif' alt='Subscribe Successfully' title='Subscribe Successfully'> Comments / Suggestions submited successfully</span>";document.getElementById('CName').value='';document.getElementById('CEmail').value='';document.getElementById('CComment').value='';}else{document.getElementById('suggestion1').innerHTML="<span style='color:red;'><img src='images/error.gif' alt='Error' title='Error' style=''> Unable to submit your Comments / Suggestions. Please try again later.</span>";}}}}}
function MM_swapImgRestore(){var i,x,a=document.MM_sr;for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++)x.src=x.oSrc;}
function MM_preloadImages(){var d=document;if(d.images){if(!d.MM_p)d.MM_p=new Array();var i,j=d.MM_p.length,a=MM_preloadImages.arguments;for(i=0;i<a.length;i++)
if(a[i].indexOf("#")!=0){d.MM_p[j]=new Image;d.MM_p[j++].src=a[i];}}}
function MM_preloadImages(){var d=document;if(d.images){if(!d.MM_p)d.MM_p=new Array();var i,j=d.MM_p.length,a=MM_preloadImages.arguments;for(i=0;i<a.length;i++)
if(a[i].indexOf("#")!=0){d.MM_p[j]=new Image;d.MM_p[j++].src=a[i];}}}
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_swapImage(){var i,j=0,x,a=MM_swapImage.arguments;document.MM_sr=new Array;for(i=0;i<(a.length-2);i+=3)
if((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x;if(!x.oSrc)x.oSrc=x.src;x.src=a[i+2];}}
function xstooltip_findPosX(obj)
{var curleft=0;if(obj.offsetParent)
{while(obj.offsetParent)
{curleft+=obj.offsetLeft
obj=obj.offsetParent;}}
else if(obj.x)
curleft+=obj.x;return curleft;}
function xstooltip_findPosY(obj)
{var curtop=0;if(obj.offsetParent)
{while(obj.offsetParent)
{curtop+=obj.offsetTop
obj=obj.offsetParent;}}
else if(obj.y)
curtop+=obj.y;return curtop;}
function xstooltip_show(tooltipId,parentId,posX,posY,text,id)
{it=document.getElementById(tooltipId);if((it.style.top==''||it.style.top==0)&&(it.style.left==''||it.style.left==0))
{it.style.width=it.offsetWidth+'px';it.style.height=it.offsetHeight+'px';img=document.getElementById(parentId);if(posX+it.offsetWidth>img.offsetWidth)posX=img.offsetWidth-it.offsetWidth;if(posX<0)posX=0;x=xstooltip_findPosX(img)+posX;y=xstooltip_findPosY(img)+posY;it.style.top=y+'px';it.style.left=x+'px';}
$.post("includes/tooltip.php",{id:id,text:text},function(data){$("#tooltip_123").html(data);});it.style.visibility='visible';}
function xstooltip_hide(id)
{it=document.getElementById(id);it.style.visibility='hidden';}
var ids=new Array('a1','a2','a3','thiscanbeanything');function switchid(id){hideallids();showdiv(id);}
function hideallids(){for(var i=0;i<ids.length;i++){hidediv(ids[i]);}}
function hidediv(id){if(document.getElementById){document.getElementById(id).style.display='none';}
else{if(document.layers){document.id.display='none';}
else{document.all.id.style.display='none';}}}
function showdiv(id){if(document.getElementById){document.getElementById(id).style.display='block';}
else{if(document.layers){document.id.display='block';}
else{document.all.id.style.display='block';}}}
