function holidayrequest()
{
	document.form1.action="holidayrequest.php";
	document.form1.method="post";
	docuemnt.form1.submit();
}

function doestatedtpt_search()
{
	if((document.frmdtpt.searchdistrict.value=="District") && (document.frmdtpt.searchplottype.value=="Plot Type"))
	{
		alert("Please select search options");
		document.frmdtpt.searchdistrict.focus();
		return false;
	}
	document.frmdtpt.action="realestateview.php";
	document.frmdtpt.submit();
}

function doestate_search()
{
	if(document.frmbypcode.pcode.value=="")
	{
		alert("Please enter property code");
		document.frmbycode.pcode.focus();
		return false;
	}
	document.frmbypcode.submit();
}
function getHTTPObject()
{
	 var http_request;

     if (window.XMLHttpRequest) { // Mozilla, Safari, ...
            http_request = new XMLHttpRequest();
            if (http_request.overrideMimeType) {
                http_request.overrideMimeType('text/xml');
                // See note below about this line
            }
        }
        if (window.ActiveXObject) { // IE
            try {
                http_request = new ActiveXObject("Msxml2.XMLHTTP");
                } 
                catch (e) {
                           try {
                                http_request = new ActiveXObject("Microsoft.XMLHTTP");
                               } 
                             catch (e) {}
                          }
                                       }

        if (!http_request) {
            alert('Giving up :Cannot create an XMLHTTP instance');
            return false;
        }
		
return http_request;  
}

<!-- dynamic popup view -->
var mouse_X;
var mouse_Y;
var tip_active=0;
var tip_num=0;
var ie = document.all?true:false;

function update_tip_pos(){
X=mouse_X;
Y=mouse_Y;

SX=0;
SY=0;
if (ie) {
SX = self.screenLeft;
SY = self.screenTop;
}
else {
SX=self.screenX;
SY=self.screenY;
}
if (SX<0) {SX=0}
if (SY<0) {SY=0}

if (self.innerHeight)
{
	ix = self.innerWidth;
	iy = self.innerHeight;
}
else if (document.documentElement && document.documentElement.clientHeight)
{
	ix = document.documentElement.clientWidth;
	iy = document.documentElement.clientHeight;
}
else if (document.body)
{
	ix = document.body.clientWidth;
	iy = document.body.clientHeight;
}

MX=ix-SX;
MY=iy-SY;

X=X+18;

if (X+430>MX) {X=MX-430;Y=Y+20}

DH=document.getElementById('Tip'+tip_num).clientHeight;
if (MY-DH+SY<Y-document.documentElement.scrollTop) {Y=Y-DH-40}

document.getElementById('Tip'+tip_num).style.left = X+'px';
document.getElementById('Tip'+tip_num).style.top  = Y+'px';
}
if (!ie) document.captureEvents(Event.MOUSEMOVE)
document.onmousemove = getMouseXY;
function getMouseXY(e) {

if (ie) {
mouse_X = event.clientX + document.documentElement.scrollLeft;
mouse_Y = event.clientY + document.documentElement.scrollTop;
}
else {
mouse_X = e.pageX;
mouse_Y = e.pageY;
}
if (mouse_X < 0){mouse_X = 0;}
if (mouse_Y < 0){mouse_Y = 0;}
if(tip_active){update_tip_pos();}
}

function show_videotitle(num,txt)
{
	tip_num=num;
	//var c=txt;
	
	if (document.getElementById('Tip'+tip_num).innerHTML=='') {return}
	document.getElementById('Tip'+tip_num).innerHTML=txt;
	update_tip_pos();
	tip_active = 1;
	document.getElementById('Tip'+tip_num).style.visibility = "visible";
}

function show_tip(num)
{
	tip_num=num;
	if (document.getElementById('Tip'+tip_num).innerHTML=='') {return}
	update_tip_pos();
	tip_active = 1;
	document.getElementById('Tip'+tip_num).style.visibility = "visible";
}
function hide_tip(num)
{
	tip_active = 0;
	document.getElementById('Tip'+tip_num).style.visibility = "hidden";
}


<!-- end of dynamic popup-->
function subemailid()
{
		alert("alert");
		var seid=document.getElementById('txtsubscribe').value;
		alert(seid);
		subscribe();
}
<!-- Ajax -->
var final = "subscribe.php?id="; // The server-side script
var httpurl = getHTTPObjectmail(); // We create the HTTP Object
 
 function handleResponse() {   
        if (httpurl.readyState == 4) {
              if(httpurl.status==200) 
			  {
                  var results=httpurl.responseText;
				  
              document.getElementById('txtsubscribe').value = "your@email.com";
			  final = "subscribe.php?id=";
			 
              }
              }
        }
       
/*function subscription() {     
           
			var seid=document.getElementById('txtsubscribe').value;
			if(seid=="your@email.com")
			{
				alert("Please enter valid email id");
				document.getElementById('txtsubscribe').focus();
				return false;
			}
			      
			var final=final+seid;
			
			httpurl.open("GET", final, true);
            httpurl.onreadystatechange = handleResponse;
            httpurl.send(null);
        }*/
		
function subscription()
{
	var seid=document.getElementById('txtsubscribe').value;
			if(seid=="your@email.com")
			{
				alert("Please enter valid email id");
				document.getElementById('txtsubscribe').focus();
				return false;
			}
			if(seid=="")
			{
				alert("Please enter valid email id");
				document.getElementById('txtsubscribe').focus();
				return false;
			}
			document.hpackFrm.action="http://www.transkeralatours.com/subscribe.php";
			document.hpackFrm.method="POST";
			document.hpackFrm.submit();
			
}


function packageviewsubscription()
{
	var seid=document.getElementById('txtsubscribe').value;
			if(seid=="your@email.com")
			{
				alert("Please enter valid email id");
				document.getElementById('txtsubscribe').focus();
				return false;
			}
			
			document.hpackpostFrm.action="http://www.transkeralatours.com/subscribe.php";
			document.hpackpostFrm.method="POST";
			document.hpackpostFrm.submit();
			
}
function getHTTPObjectmail() {
  var xmlhttpurl;

  if(window.XMLHttpRequest){
    xmlhttpurl = new XMLHttpRequest();
  }
  else if (window.ActiveXObject){
    xmlhttpurl=new ActiveXObject("Microsoft.XMLHTTP");
    if (!xmlhttpurl){
        xmlhttpurl=new ActiveXObject("Msxml2.XMLHTTP");
    }
   
}
  return xmlhttpurl;

 
}
<!-- end of Ajax -->



/*Javascript for validity checking*/
 // Declaring required variables
var digits = "0123456789";
// non-digit characters which are allowed in phone numbers
var phoneNumberDelimiters = "()- ";
// characters which are allowed in international phone numbers
// (a leading + is OK)
var validWorldPhoneChars = phoneNumberDelimiters + "+";
// Minimum no of digits in an international phone no.
var minDigitsInIPhoneNumber = 8;

function isInteger(s)
{   var i;
    for (i = 0; i < s.length; i++)
    {
        // Check that current character is number.
        var c = s.charAt(i);
        if (((c < "0") || (c > "9"))) return false;
    }
    // All characters are numbers.
    return true;
}

function stripCharsInBag(s, bag)
{   var i;
    var returnString = "";
    // Search through string's characters one by one.
    // If character is not in bag, append to returnString.
    for (i = 0; i < s.length; i++)
    {
        // Check that current character isn't whitespace.
        var c = s.charAt(i);
        if (bag.indexOf(c) == -1) returnString += c;
    }
    return returnString;
}

function checkInternationalPhone(strPhone){
s=stripCharsInBag(strPhone,validWorldPhoneChars);
return (isInteger(s) && s.length >= minDigitsInIPhoneNumber);
}



    function val_email(data,frm_msg,n_flg)
	{
		if (n_flg ==1)
		{
			if(trimchk1(data) == false)
			{
				alert(frm_msg)
				return false
			}
		}
			var reg=/ /g;
			if (data.indexOf('@') ==-1 || data.indexOf('.') ==-1)
			{
				alert(frm_msg);
				return false
			}
			else if((data.substring(0,data.indexOf("@")).replace(reg,""))=="" ||(data.substring(data.indexOf("@")+1,data.indexOf(".")).replace(reg,""))=="" || (data.substring(data.indexOf(".")+1,data.length).replace(reg,""))=="" )
			{
				alert(frm_msg);
				return false
			}
			return true
	}

	function trimchk(frm_fld) 
	 {
		//alert(eval(frm_fld + ".value.length"));
		if(eval(frm_fld + ".value.length")== 0) {
			return false
		}
		var str;
		for (var i=0;i< eval(frm_fld + ".value.length");i++)
		{
			str =""
			string2 = '' + eval(frm_fld + ".value");
			splitstring = string2.split(" ");
			for(j = 0; j < splitstring.length; j++)
			{
				str += splitstring[j];
			}
	    }
			if ((str==""))
			{
				return false;
			}
		return true;
    }


	function val_number(frm_nfield,frm_nmsg,frm_zero)
	{
			var n=frm_nfield
			if (isNaN(n)==true || n==""  || n.length==0 || trimchk1(n) == false  )
			{
				alert(frm_nmsg);
				return false;
			}
			if(frm_zero==0)
			{
				if (n < 0)
				{
					alert("Enter a non negative number");
					return false;
				}
			}
			if(frm_zero==1)
			{
				if (n <= 0)
				{
					alert("Enter a number greater than 0 ");
					return false;
				}
			}

	}

       function val_description(f_n,f_min,f_max,msg_min,msg_max,n_flg)
       {
   		if (n_flg ==1)
		{
			if(trimchk1(f_n) == false)
			{
				alert(msg_min)
				return false
			}
		}

	   if (f_n.length > f_max)
		{
			alert(msg_max);
			return false
		}
		if (f_n.length < f_min)
		{
			alert(msg_min);
			return false
		}
	}

	function val_date(f_day,f_month,f_year,f_zero)
		{
			if (f_zero ==1)
			{
				if (f_day==0 || f_month==0 || f_year==0)
				{
					return 1
				}
			}
				if ((f_month==4 || f_month==6 || f_month==9 || f_month==11) && f_day==31)
				{
					alert("Month "+f_month+" doesn't have 31 days!")
					return 0
				}

				if (f_month == 2)
				{
				// check for february 29th
					var isleap = (f_year % 4 == 0 && (f_year % 100 != 0 || f_year % 400 == 0));
					if (f_day>29 || (f_day==29 && !isleap))
					{
						alert("February " + f_year + " doesn't have " + f_day + " days!");
						return 0;
					}
				}

		}


      function valid_date(a)
      {
       var err=0
        var psj=0;
         if (a.length != 10)
          {
 	     err=1
	     alert("Date is not complete")
	     return 0
         }
             b = a.substring(3, 5)// month
             c = a.substring(2, 3)// '-'
             d = a.substring(0, 2)// day
             e = a.substring(5, 6)// '-'
             f = a.substring(6, 10)// year
//basic error checking
        if (b<1 || b>12 || isNaN(b)==true)
        {
	alert("Invalid month  "+b)
	return 0
	err = 1
        }

        if (isNaN(d)==true)
        {
	alert("Invalid Day  "+d)
	return 0
	err = 1
        }

        if (isNaN(f)==true)
        {
	alert("Invalid Year  "+f)
	return 0
	err = 1
        }
        if (c != '/') err = 1
        if (d<1 || d>31) err = 1
        if (e != '/') err = 1
        if (f<2000 || f>9999) err = 1
//advanced error checking
// months with 30 days
          if (b==2 || b==4 || b==6 || b==9 || b==11)
          {
          if (d==31)
          {
	   err=1
	   alert("Month "+b+" doesn't have 31 days!")
	   return 0
           }
           }
// february, leap year
       if (b==2)
       {
	 // feb
	 var g=parseInt(f/4)
	 if (isNaN(g))
	  {
		  err=1
	  }
	  if (d>29)
	  {
	  	err=1
		alert("February " +f+ " doesn't have " +d+ " days!");
	    return 0;
	  }
	  if (d==29 && ((f/4)!=parseInt(f/4)))
	  {
		  err=1
		  alert("February " +f+ " doesn't have " +d+ " days!");
	      return 0;
	  }

       }
       if (err==1)
       {
	  alert("Invalid Date")
	  return 0
      }
      else
      {
  	return 1
      }
      }

      function chk_char(data,param)
      {
	var reg=/ /g;
	if (data.indexOf(param) !=-1)
	{
		return 0
	}
	else
	{
		return 1
	}
      }


	function trimchk1(num) {

		var str;
		for (var i=0;i< num.length;i++)
		{
			str =""
			string2 = '' + num;
			splitstring = string2.split(" ");
			for(j = 0; j < splitstring.length; j++)
			{
				str += splitstring[j];
			}
	    }
			if ((str==""))
			{
				return false;
			}
		return true;
         }

         function datediff(from_date,to_date)
         {

	from_date= new Date(from_date)
	to_date = new Date(to_date)
	if (to_date < from_date)
	{
		return false
	}
	else
	{
		return true;
	}

  }

/*End of validity checking */
	

function Convert()
{
	document.frmConvert.method="POST";
	document.frmConvert.submit();
}
<!-- function for mini portal-->
function doClassifides(th)
{
	if(th.value=="classifieds")
  	{
		document.hpackFrm.action="http://www.transkeralatours.com/classifieds.php";
		document.hpackFrm.method="POST";
		document.hpackFrm.submit();
 	}
	if(th.value=="indulekha")
  	{
		var url="http://www.indulekha.com/";
			indulekhawindow= window.open (url, "printwindow",
    		"menubar=yes,location=1,status=1,scrollbars=yes,resizable=1,width=800,height=800,left=0,top=0");
 	}
	if(th.value=="ndtv")
  	{
		var url="http://www.ndtv.com/convergence/ndtv/videopod/default.aspx";
			indulekhawindow= window.open (url, "printwindow",
    		"menubar=yes,location=1,status=1,scrollbars=yes,resizable=1,width=800,height=800,left=0,top=0");
 	}
	if(th.value=="ibn")
  	{
		var url="http://www.ibnlive.com/videos/video_streaming.php";
			indulekhawindow= window.open (url, "printwindow",
    		"menubar=yes,location=1,status=1,scrollbars=yes,resizable=1,width=600,height=600,left=0,top=0");
 	}
	if(th.value=="Radio Dum Dum")
	{
		var url="http://www.radiodumdum.com/";
			printwindow= window.open (url, "printwindow",
    		"menubar=yes,location=1,status=1,scrollbars=yes,resizable=1,width=800,height=800,left=0,top=0");
 	}
	if(th.value=="Joyalukkas Radio")
	{
		var url="http://radiojoyalukkas.com/Web/Login.aspx";
			printwindow= window.open (url, "printwindow",
    		"menubar=yes,location=1,status=1,scrollbars=yes,resizable=1,width=800,height=800,left=0,top=0");
 	}
	if(th.value=="Indian Music")
	{
		var url="http://www.raaga.com/";
			printwindow= window.open (url, "printwindow",
    		"menubar=yes,location=1,status=1,scrollbars=yes,resizable=1,width=800,height=800,left=0,top=0");
 	}
}
<!-- end of mini portal-->

<!-- Function for Trip Planner -->
function doTrip(th)
{
	if(th.value=="Packages")
  	{
		document.hpackFrm.action="http://www.transkeralatours.com/indianholidays.php";
		document.hpackFrm.method="POST";
		document.hpackFrm.submit();
 	}
	if(th.value=="Flights")
  	{
		document.hpackFrm.action="http://www.transkeralatours.com/flights.php";
		document.hpackFrm.method="POST";
		document.hpackFrm.submit();
 	}
	if(th.value=="Places to Visit")
  	{
		document.hpackFrm.action="http://www.transkeralatours.com/PlacesToVisit.php";
		document.hpackFrm.method="POST";
		document.hpackFrm.submit();
 	}
	if(th.value=="Accommodation")
  	{
		document.hpackFrm.action="http://www.transkeralatours.com/makepackage.php";
		document.hpackFrm.method="POST";
		document.hpackFrm.submit();
 	}
	if(th.value=="Trains")
  	{
		document.hpackFrm.action="http://www.transkeralatours.com/trains.php";
		document.hpackFrm.method="POST";
		document.hpackFrm.submit();
 	}
	if(th.value=="Agents")
  	{
		document.hpackFrm.action="http://www.transkeralatours.com/agents.php";
		document.hpackFrm.method="POST";
		document.hpackFrm.submit();
 	}
	if(th.value=="Restaurants")
  	{
		document.hpackFrm.action="http://www.transkeralatours.com/restaurants.php";
		document.hpackFrm.method="POST";
		document.hpackFrm.submit();
 	}
}
<!-- Trip Planner Ends here -->
<!-- Function for Holiday packages -->
function doHoliday(th)
{
	if(th.value=="Custom Packages")
  	{
		document.hpackFrm.action="custompackages.php";
		document.hpackFrm.method="POST";
		document.hpackFrm.submit();
 	}
	if(th.value=="Indian Holidays")
  	{
		document.hpackFrm.action="indianholidays.php";
		document.hpackFrm.method="POST";
		document.hpackFrm.submit();
 	}
	if(th.value=="International Holidays")
  	{
		document.hpackFrm.action="internationalholidays.php";
		document.hpackFrm.method="POST";
		document.hpackFrm.submit();
 	}
	if(th.value=="Eurail & Swissrail")
  	{
		document.hpackFrm.action="eurail.php";
		document.hpackFrm.method="POST";
		document.hpackFrm.submit();
 	}
	if(th.value=="Air Ticketing")
  	{
		/*document.hpackFrm.action="airticket.php";
		document.hpackFrm.method="POST";
		document.hpackFrm.submit();*/
 	}
	if(th.value=="Car Rental")
  	{
		/*document.hpackFrm.action="carrental.php";
		document.hpackFrm.method="POST";
		document.hpackFrm.submit();*/
 	}
	if(th.value=="Cruise")
  	{
		/*document.hpackFrm.action="cruise.php";
		document.hpackFrm.method="POST";
		document.hpackFrm.submit();*/
 	}
}
<!-- holiday pakage function ends here -->
<!-- Function for Experience Kerala -->
function doExperience(th)
{
	if(th.value=="History")
  	{
		document.hpackFrm.action="http://www.transkeralatours.com/History.php";
		document.hpackFrm.method="POST";
		document.hpackFrm.submit();
 	}
	if(th.value=="Food Recipes")
  	{
		document.hpackFrm.action="http://www.transkeralatours.com/Recipes.php";
		document.hpackFrm.method="POST";
		document.hpackFrm.submit();
 	}
	if(th.value=="Geography")
  	{
		document.hpackFrm.action="http://www.transkeralatours.com/Geography.php";
		document.hpackFrm.method="POST";
		document.hpackFrm.submit();
 	}
	if(th.value=="Arts & Culture")
  	{
		document.hpackFrm.action="http://www.transkeralatours.com/Culture.php";
		document.hpackFrm.method="POST";
		document.hpackFrm.submit();
 	}
	if(th.value=="People & Lifestyle")
  	{
		document.hpackFrm.action="http://www.transkeralatours.com/People.php";
		document.hpackFrm.method="POST";
		document.hpackFrm.submit();
 	}
	if(th.value=="Fairs & Festivals")
  	{
		document.hpackFrm.action="http://www.transkeralatours.com/Festivals.php";
		document.hpackFrm.method="POST";
		document.hpackFrm.submit();
 	}
	if(th.value=="Cuisine")
  	{
		document.hpackFrm.action="http://www.transkeralatours.com/Cuisine.php";
		document.hpackFrm.method="POST";
		document.hpackFrm.submit();
 	}
	if(th.value=="Languages")
  	{
		document.hpackFrm.action="http://www.transkeralatours.com/Languages.php";
		document.hpackFrm.method="POST";
		document.hpackFrm.submit();
 	}
	if(th.value=="Communication")
  	{
		document.hpackFrm.action="http://www.transkeralatours.com/Communications.php";
		document.hpackFrm.method="POST";
		document.hpackFrm.submit();
 	}
	if(th.value=="By Regions/Places")
  	{
		document.hpackFrm.action="http://www.transkeralatours.com/PlacesToVisit.php";
		document.hpackFrm.method="POST";
		document.hpackFrm.submit();
 	}
}
<!-- Experience Kerala function ends here -->

<!-- Function for Vacation Ideas -->
function doVacation(th)
{
	if(th.value=="Adventure")
	{
		/*document.hpackFrm.action="http://www.transkeralatours.com/adventure.php";
		document.hpackFrm.method="POST";
		document.hpackFrm.submit();*/
 	}
	if(th.value=="Ayurveda")
	{
		document.hpackFrm.action="http://www.transkeralatours.com/ayurveda.php";
		document.hpackFrm.method="POST";
		document.hpackFrm.submit();
 	}
	if(th.value=="Eco-Tourism")
	{
		/*document.hpackFrm.action="http://www.transkeralatours.com/ecotourism.php";
		document.hpackFrm.method="POST";
		document.hpackFrm.submit();*/
 	}
	if(th.value=="Medical")
	{
		/*document.hpackFrm.action="http://www.transkeralatours.com/medicaltourism.php";
		document.hpackFrm.method="POST";
		document.hpackFrm.submit();*/
 	}
	if(th.value=="MICE")
	{
		/*document.hpackFrm.action="http://www.transkeralatours.com/mice.php";
		document.hpackFrm.method="POST";
		document.hpackFrm.submit();*/
 	}
	if(th.value=="Heritage trains")
	{
		/*document.hpackFrm.action="http://www.transkeralatours.com/heritagetrains.php";
		document.hpackFrm.method="POST";
		document.hpackFrm.submit();*/
 	}
	if(th.value=="Beaches of Kerala")
	{
		document.hpackFrm.action="http://www.transkeralatours.com/Beaches.php";
		document.hpackFrm.method="POST";
		document.hpackFrm.submit();
 	}
	if(th.value=="Pilgrimages & Spirituality")
	{
		document.hpackFrm.action="http://www.transkeralatours.com/Pilgrimages.php";
		document.hpackFrm.method="POST";
		document.hpackFrm.submit();
 	}
	if(th.value=="Royal Retreats")
	{
		document.hpackFrm.action="http://www.transkeralatours.com/royalretreats.php";
		document.hpackFrm.method="POST";
		document.hpackFrm.submit();
 	}
	if(th.value=="Wellness")
	{
		document.hpackFrm.action="http://www.transkeralatours.com/wellness.php";
		document.hpackFrm.method="POST";
		document.hpackFrm.submit();
 	}
	if(th.value=="Wildlife")
	{
		document.hpackFrm.action="http://www.transkeralatours.com/Wildlife.php";
		document.hpackFrm.method="POST";
		document.hpackFrm.submit();
 	}
	
	
}
<!-- Vacation Idea function ends here -->

<!-- Function for Kerala TV Channels -->
function doChannels(th)
{
	if(th.value=="Amrita")
	{
		var url="http://www.amritatv.com/streaming/";
			printwindow= window.open (url, "printwindow",
    		"menubar=yes,location=0,status=1,scrollbars=yes,resizable=1,width=800,height=800,left=0,top=0");
		
 	}
	if(th.value=="Indiavision")
	{
		var url="http://www.indiavisionnewslive.com/";
			printwindow= window.open (url, "printwindow",
    		"menubar=yes,location=1,status=1,scrollbars=yes,resizable=1,width=800,height=800,left=0,top=0");
 	}
	if(th.value=="Kairali")
	{
		var url="http://www.kairalitv.in";
			printwindow= window.open (url, "printwindow",
    		"menubar=yes,location=1,status=1,scrollbars=yes,resizable=1,width=800,height=800,left=0,top=0");
 	}
	if(th.value=="Manorama News")
	{
		var url="http://www.manoramanews.com/";
			printwindow= window.open (url, "printwindow",
    		"menubar=yes,location=1,status=1,scrollbars=yes,resizable=1,width=800,height=800,left=0,top=0");
 	}
	if(th.value=="Asianet")
	{
		var url="http://www.asianetglobal.com";
			printwindow= window.open (url, "printwindow",
    		"menubar=yes,location=1,status=1,scrollbars=yes,resizable=1,width=800,height=800,left=0,top=0");
 	}
	if(th.value=="Surya")
	{
		var url="http://www.sunnetwork.org/suryatv/";
			printwindow= window.open (url, "printwindow",
    		"menubar=yes,location=1,status=1,scrollbars=yes,resizable=1,width=800,height=800,left=0,top=0");
 	}
	if(th.value=="Jeevan")
	{
		var url="http://www.jeevan.tv";
			printwindow= window.open (url, "printwindow",
    		"menubar=yes,location=1,status=1,scrollbars=yes,resizable=1,width=800,height=800,left=0,top=0");
 	}
	if(th.value=="Jaihind")
	{
		var url="http://www.jaihindtv.in/home.asp";
			printwindow= window.open (url, "printwindow",
    		"menubar=yes,location=1,status=1,scrollbars=yes,resizable=1,width=800,height=800,left=0,top=0");
 	}
	
}
<!-- Kerala TV Channels ends here -->

<!-- function for Searching -->
function doSearch()
{
	
	
	if((document.hpackFrm.selMon.value=="Month") && (document.hpackFrm.selYear.value=="Year"))
	{
		alert("Please select valid travelling Month and Year");
		document.hpackFrm.selMon.focus();
		return false;
	}
	
	else if(document.hpackFrm.selMon.value=="Month")
	{
		alert("Please enter valid travelling month");
		document.hpackFrm.selMon.focus();
		return false;
	}
	
	else if(document.hpackFrm.selYear.value=="Year")
	{
		alert("Please enter valid travelling year");
		document.hpackFrm.selYear.focus();
		return false;
	}

	document.hpackFrm.action="http://www.transkeralatours.com/packageView.php";
	document.hpackFrm.method="POST";
	document.hpackFrm.submit();

}

function doSearch1()
{
	
	
	if((document.hpackFrm1.selMon.value=="Month") && (document.hpackFrm1.selYear.value=="Year"))
	{
		alert("Please select valid travelling Month and Year");
		document.hpackFrm1.selMon.focus();
		return false;
	}
	
	else if(document.hpackFrm1.selMon.value=="Month")
	{
		alert("Please enter valid travelling month");
		document.hpackFrm1.selMon.focus();
		return false;
	}
	
	else if(document.hpackFrm1.selYear.value=="Year")
	{
		alert("Please enter valid travelling year");
		document.hpackFrm1.selYear.focus();
		return false;
	}

	document.hpackFrm1.action="http://www.transkeralatours.com/packageView.php";
	document.hpackFrm1.method="POST";
	document.hpackFrm1.submit();

}

function check1()
{
	
	if((document.hpackpostFrm.selMon.value=="Month") && (document.hpackpostFrm.selYear.value=="Year"))
	{
		alert("Please select valid travelling Month and Year");
		document.hpackpostFrm.selMon.focus();
		return false;
	}
	
	else if(document.hpackpostFrm.selMon.value=="Month")
	{
		alert("Please enter valid travelling month");
		document.hpackpostFrm.selMon.focus();
		return false;
	}
	
	else if(document.hpackpostFrm.selYear.value=="Year")
	{
		alert("Please enter valid travelling year");
		document.hpackpostFrm.selYear.focus();
		return false;
	}

	document.hpackpostFrm.action="http://www.transkeralatours.com/packageView.php";
	document.hpackpostFrm.method="POST";
	document.hpackpostFrm.submit();
}	


function packagedetails(h,hp,m,y,d,p,mon,rate,htype)
{
	
	
	document.hpackFrm.hId.value=h;
	document.hpackFrm.hpId.value=hp;
	document.hpackFrm.m.value=m;
	document.hpackFrm.y.value=y;
	document.hpackFrm.d.value=d;
	document.hpackFrm.p.value=p;
	document.hpackFrm.month.value=mon;
	document.hpackFrm.rate.value=rate;
	document.hpackFrm.htype.value=htype;
	
	document.hpackFrm.action="http://www.transkeralatours.com/packageInfo.php";
	document.hpackFrm.method="POST";
	document.hpackFrm.submit();
}

function usersubmit()
{
	document.hpackFrm.action="http://www.transkeralatours.com/userDetails.php";
	document.hpackFrm.method="POST";
	document.hpackFrm.submit();
}

function Convert()
{
	document.frmconverts.submit();
}

function subscribe()
{
	if(document.hpackFrm.txtsub.value=="")
	{
     alert("Please enter your email address")
     document.hpackFrm.txtsub.focus();
     return false;
	}
              
	if(document.hpackFrm.txtsub.value!="")
	{

   	if (val_email(document.hpackFrm.txtsub.value,"Please enter a valid email address",1)==false)
		{
     	  document.hpackFrm.txtsub.focus();
     		return false;
	    }
	}
	
	document.hpackFrm.action="http://www.transkeralatours.com/subscribe.php";
	document.hpackFrm.method="POST";
	document.hpackFrm.submit();
}