					
						function bookmarkus(url,title)
						{
							if ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4)) 
							{
								window.external.AddFavorite(url,title);
							}
							else
							{
								var msg =  "Please press (CTRL-D) to bookmark us ";
								window.alert(msg);
							}
						}
						function showpopup(value)
						 {
							popUpWin = window.open(value,"Popup","width=435,Height=330,scrollbars=1,resizable=yes,top=100,left=182.5");
							popUpWin.focus();
						 }
						function getlanguagedate()
						{
							var mess='';
							mess= document.dates_form.dates_values.value;
							//alert("hello "+mess);
							document.language_form.dates_values.value = mess;
							document.language_form.submit();
						}
						function gettheatredate()
						{
							var mess='';
							mess= document.dates_form.dates_values.value;
							//alert("hello "+mess);
							document.theatre.dates_values.value = mess;
							document.theatre.submit();
						}
						function getmoviedate()
						{
							var mess='';
							mess= document.dates_form.dates_values.value;
							//alert("hello "+mess);
							document.movies.dates_values.value = mess;
							document.movies.submit();
						}
						function gettheatredefault()
						{
							var mess='';
							mess= document.theatre.theatre_name.value;
							//alert("hello "+mess);
							document.dates_form.theatre_name.value = 'null';							
							document.dates_form.submit();
						}
						function getsetmovieid()
						{
							var mess='';
							mess= document.movies.movie_id.value;
							//alert("hello "+mess);
							if (mess!='null' && mess!='nodata')
							{
							document.dates_form.movie_id.value = mess;							
							}
							document.dates_form.submit();						
						}
						function confirmation(message)
						{							
							var y;							
							y = confirm('You have choosen to book tickets for '+message+'\nPress OK to continue. CANCEL to change the date or movie');							
							if(y)
							return true;
							else
								return false;
						}
					
//function for cookies
function getexpirydate(nodays){
var UTCstring;
Today = new Date();
nomilli=Date.parse(Today);
Today.setTime(nomilli+nodays*24*60*60*1000);
UTCstring = Today.toUTCString();
return UTCstring;
}
function getcookie(cookiename) {
 var cookiestring=""+document.cookie;
 var index1=cookiestring.indexOf(cookiename);
 if (index1==-1 || cookiename=="") return ""; 
 var index2=cookiestring.indexOf(';',index1);
 if (index2==-1) index2=cookiestring.length; 
 return unescape(cookiestring.substring(index1+cookiename.length+1,index2));
}
function setcookie(name,value,duration){
if(duration == '' || duration == null || duration == 0){
cookiestring=name+"="+escape(value);
}
else{
	duration = 365;
cookiestring=name+"="+escape(value)+";EXPIRES="+getexpirydate(duration)+";PATH=/;DOMAIN=.ghoomo.com";
}
document.cookie=cookiestring;
if(!getcookie(name)){
return false;
}
else{
return true;
}
}
// functions for cookies ends here