	
	var mainRnd;
	
	browserName = navigator.appName;
	browserVer = parseInt(navigator.appVersion);
	condition = !(( (browserName.indexOf("Explorer") >=0 ) && (browserVer < 4)) || ((browserName.indexOf("Netscape") >=0 ) && (browserVer < 4)));
	
	function rndObj(actType)
	{
		
		topGif=new Array()
		topGif[0]="gifs-2/back3.jpg";
		topGif[1]="gifs-2/back1.jpg";
		topGif[2]="gifs-2/back2.jpg";

		iCss=new Array()
		iCss[0]="style.css";
		iCss[1]="arunachal.css";
		iCss[2]="meghalaya.css";
		
		reservGif=new Array();
		reservGif[0]="gifs-2/reservation-desk-blue.gif";
		reservGif[1]="gifs-2/reservation-desk-green.gif";
		reservGif[2]="gifs-2/reservation-desk-yellow.gif";
		
		leftbg=new Array();
		leftbg[0]="gifs/left-td-bg.gif";
		leftbg[1]="arunachal-pradesh-travel/gifs/arunachal-left-td-bg.gif";
		leftbg[2]="meghalaya-travel/gifs/left-td-bg.gif";

		searchGif=new Array();
		searchGif[0]="gifs-2/search-blue.gif";
		searchGif[1]="gifs-2/search-green.gif";
		searchGif[2]="gifs-2/search-yellow.gif";
		
		logo=new Array();
		logo[0]="gifs/north-east-india-travels-tl.gif";
		logo[1]="arunachal-pradesh-travel/gifs/arunachal-north-east-name.gif";
		logo[2]="meghalaya-travel/gifs/north-east-india-travels-tl.gif";

		pagebg=new Array();
		pagebg[0]="gifs/bg.gif";
		pagebg[1]="arunachal-pradesh-travel/gifs/arunachal-bg.gif";
		pagebg[2]="meghalaya-travel/gifs/bg.gif";

		topbg=new Array();
		topbg[0]="gifs/left-td-bg.gif";
		topbg[1]="arunachal-pradesh-travel/gifs/left-td-bg.gif";
		topbg[2]="meghalaya-travel/gifs/left-td-bg.gif";

		cimage1=new Array();
		cimage1[0]="gifs/assam-rhino.jpg";
		cimage1[1]="gifs/assam-rhino3.jpg";
		cimage1[2]="gifs/assam-rhino6.jpg";

		cimage2=new Array();
		cimage2[0]="gifs/assam-rhino1.jpg";
		cimage2[1]="gifs/assam-rhino4.jpg";
		cimage2[2]="gifs/assam-rhino7.jpg";
	
		cimage3=new Array();
		cimage3[0]="gifs/assam-rhino2.jpg";
		cimage3[1]="gifs/assam-rhino5.jpg";
		cimage3[2]="gifs/assam-rhino8.jpg";

		ashoka=new Array();
		ashoka[0]="gifs/ashoka-holidays-logo.gif";
		ashoka[1]="arunachal-pradesh-travel/gifs/ashoka-holidays-logo.gif";
		ashoka[2]="meghalaya-travel/gifs/ashoka-holidays-logo.gif";

		txt=new Array();
		txt[0]="A visit to <b>India</b> has a unique flavour of variance in it that one could witness in no other place in the world. Known as the <b>country of snake charmers</b>, <b>India</b> is like a colourful patchwork quilt, beautifully harmonized to form a composite whole.";
		txt[1]="<b>Visit India</b>, a country with a multi cultural persona forever absorbing new influences in it. The <b>amazing diversity</b> of mores, customs and beliefs blend so well with the <b>modernity </b>that India has become a <b>tourist paradise</b>.";
		txt[2]="From the cold desert of <b>Ladakh </b> to the blazing desert of <b>Rajasthan</b>, from <b>Kanya Kumari</b>, the southern most tip of India, known for its magnificent <b>sunrise </b>and <b>sunsets </b>to the lush green wilderness of Assam, <b>India's landscapes are as varied </b>and arresting as its people. ";
		
		sideGif=new Array()
		sideGif[0]="gifs-2/khajuraho.jpg";
		sideGif[1]="gifs-2/lady-2.jpg";
		sideGif[2]="gifs-2/konark-temple-orissa.jpg";
		sideGif[3]="gifs-2/monks.jpg";
		sideGif[4]="gifs-2/backwater.jpg";
		
		if (actType=='sideGif')
		{
			len=5;
		}
		else 
		{ 
			len=3;
		}
			
		rnd=Math.floor(Math.random()*len);
		
		if (actType=='css')
		{
			mainRnd=rnd;
			document.writeln('<LINK HREF="'+iCss[rnd]+'" REL=STYLESHEET TYPE=text/css>');
		}
		else if (actType=='bodybg')
		{
			document.writeln('<BODY background="'+pagebg[mainRnd]+'">');	
		}
		else if (actType=='topbg')
		{
			document.writeln('<TD BACKGROUND="'+topbg[mainRnd]+'" WIDTH="500">');	
		}
		else if (actType=='topGif')
		{
			document.writeln('<TD BACKGROUND="'+topGif[mainRnd]+'" WIDTH="500">');	
		}
		else if (actType=='leftbg')
		{
			document.writeln('<TD BACKGROUND="'+leftbg[mainRnd]+'" WIDTH="150">');	
		}
		else if (actType=='leftlogo')
		{
			document.writeln('<A href="index.html"><IMG SRC="'+logo[mainRnd]+'" ALT="North East India Travels" WIDTH="150" HEIGHT="137" Border="0"></A>');	
		}
		else if (actType=='centreimage')
		{
			document.write('<IMG SRC="'+cimage1[mainRnd]+'" ALT="north east india, tours to north east india, north east india tour" WIDTH="144" HEIGHT="217">');
			document.write('<IMG SRC="'+cimage2[mainRnd]+'" ALT="north east india, tours to north east india, north east india tour" WIDTH="159" HEIGHT="217">');
			document.write('<IMG SRC="'+cimage3[mainRnd]+'" ALT="north east india, tours to north east india, north east india tour" WIDTH="142" HEIGHT="217">');
		}
		else if (actType=='ashoka')
		{
			document.writeln('<IMG SRC="'+ashoka[mainRnd]+'" ALT="brought to you by: ASHOKA HOLIDAYS" WIDTH="150" HEIGHT="67" BORDER="0">');
		}
		else if (actType=='reservGif')
		{
			document.writeln('<DIV><A HREF="http://tours.indiantravelportal.com/"><IMG SRC="'+reservGif[mainRnd]+'" ALT="Reservation Desk" BORDER="0" HSPACE="0" VSPACE="0"></A></DIV>');
		}
		else if (actType=='txt')
		{
			document.writeln(txt[rnd]);
		}
	}




function checkSearchTop()
{

	if (document.SearchTop.search.value.length < 3){
	    alert("Enter at least three characters for search."); 
	    document.SearchTop.search.focus();
	    return false;
	}
	return true;
}

function checkSearchBottom()
{

	if (document.SearchBottom.search.value.length < 3){
	    alert("Enter at least three characters for search."); 
	    document.SearchBottom.search.focus();
	    return false;
	}
	return true;
}
