



//for blinking
function doBlink() {
	var blink = document.all.tags("BLINK")
	for (var i=0; i<blink.length; i++)
		blink[i].style.visibility = blink[i].style.visibility == "" ? "hidden" : "" 
}

function startBlink() {
	if (document.all)
		setInterval("doBlink()",500)
}
window.onload = startBlink;




//main index script


function doBlink() {
	var blink = document.all.tags("BLINK")
	for (var i=0; i<blink.length; i++)
		blink[i].style.visibility = blink[i].style.visibility == "" ? "hidden" : "" 
}

function startBlink() {
	if (document.all)
		setInterval("doBlink()",200)
}
window.onload = startBlink;





function isValid() {
 var mail=document.form1.email.value;
 if (mail.indexOf(' ')==-1 
      && 0<mail.indexOf('@')
      && mail.indexOf('@')+1 < mail.length
 ) return true;
 else alert ('Invalid email address!')
 return false;
}

 

function selecttext() 
{ 
document.form1.email.select()
} 


//Header script

function validate_form() 
		
  { 
   if((document.search.query.value=="") || 
(eval(document.search.query).value.charAt()==' ')) 
   { 
    window.alert("Enter an Keyword to Search"); 
    document.search.query.focus(); 
    return false; 
   } 
   
   return true; 
  } 

  
function selectname() 
{ 
document.loginForm.login.select()
} 

function dologin(form,login_url)
{
	loginname = form.login.value.split("@");
	if(loginname[1])
		form.login.value=loginname[0];
}

  
 function validate_gsearch() 
		
  { 
   if((document.gsearch.q.value=="") || 
(eval(document.gsearch.q).value.charAt()==' ')) 
   { 
    window.alert("Please enter the Keyword"); 
    document.gsearch.q.focus(); 
    return false; 
   } 
   
   return true; 
  } 



//ajax script

function change_class(id, newClass) {
  identity=document.getElementById(id);
  identity.className=newClass;
}

	function show_tab(tab){

      var tabs = ["","top_cont_1","top_cont_2","top_cont_3","top_cont_4"];

        for(i=1; i < tabs.length; i++){
          var obj = document.getElementById(tabs[i]);
          change_class("ttab_nav_"+i, "tab_main_inactive")
          obj.style.display = "none";
        }
          
        var obj = document.getElementById("top_cont_"+tab);
        obj.style.display = "block";
        change_class("ttab_nav_"+tab, "tab_main_active")
      }
	  
	
function show_tab1(tab){

      var tabs = ["","top_cont_1","top_cont_2","top_cont_3"];

        for(i=1; i < tabs.length; i++){
          var obj = document.getElementById(tabs[i]);
          change_class("ttab_nav_"+i, "tab_main_inactive")
          obj.style.display = "none";
        }
          
        var obj = document.getElementById("top_cont_"+tab);
        obj.style.display = "block";
        change_class("ttab_nav_"+tab, "tab_main_active")
      }
	  
function swaperTabs(swapLayer, numberOfTabs, stringNumber)
	{
		
		var tabs = numberOfTabs;
		var strs = stringNumber;
		var currLayer = swapLayer;
		var currLayerIndex = currLayer.substring(0,strs);
		
		for(i=1; i<=tabs; i++)
		{
			
			var currLayerRest = currLayerIndex + i;
			document.getElementById(currLayerRest).style.display='none';
		}
		document.getElementById(currLayer).style.display='block';
	}
  
  
  
function tabs(swapLayer, numberOfTabs, stringNumber)
{
var tabs = numberOfTabs;
var strs = stringNumber;
var currLayer = swapLayer;
var currLayerIndex = currLayer.substring(0,strs);

for(i=1; i<=tabs; i++)
{

var currLayerRest = currLayerIndex + i;
document.getElementById(currLayerRest).style.display='none';
}
document.getElementById(currLayer).style.display='block';
}


//chat script


function popUp( url ) {
	var doc = document.chat;
	var roomname;
	roomname=doc.room.value;
	//alert(roomname);
	/*for(var i =0; i<doc.room.length; i++)
	{
		if(doc.room[i].checked)
		{
		alert(doc.room[i].checked);
		roomname=doc.room[i].value;
		alert(roomname);
		}
	}*/
	window.open( "http://chat.oneindia.in/example3/index.php?username="+doc.username.value+"&roomname="+roomname,"chatWindow",'width=700,height=500,status=no,scrollbars=no, location=no,toolbar=no,resizable=no');
}




//ajax script

function change_class(id, newClass) {
  identity=document.getElementById(id);
  identity.className=newClass;
}

	function show_tab(tab){

      var tabs = ["","top_cont_1","top_cont_2","top_cont_3","top_cont_4"];

        for(i=1; i < tabs.length; i++){
          var obj = document.getElementById(tabs[i]);
          change_class("ttab_nav_"+i, "tab_main_inactive")
          obj.style.display = "none";
        }
          
        var obj = document.getElementById("top_cont_"+tab);
        obj.style.display = "block";
        change_class("ttab_nav_"+tab, "tab_main_active")
      }
	  
	  
	  
	  
	  //main page Insync Script
function changeMustWatch( name, arg, total_arg){
    for (var i=1;i <= total_arg;i++){
        if(i == arg ){
            document.getElementById( name+i+"_0").style.display="block";
            document.getElementById( name+i+"_1").style.display="none";
        }
        else{
            document.getElementById( name+i+"_0").style.display="none";
            document.getElementById( name+i+"_1").style.display="block";
        }
    }
}

//main page Gallery
	  
	function swaperTabs(swapLayer, numberOfTabs, stringNumber)
	{
		
		var tabs = numberOfTabs;
		var strs = stringNumber;
		var currLayer = swapLayer;
		var currLayerIndex = currLayer.substring(0,strs);
		
		for(i=1; i<=tabs; i++)
		{
			
			var currLayerRest = currLayerIndex + i;
			document.getElementById(currLayerRest).style.display='none';
		}
		document.getElementById(currLayer).style.display='block';
	}
  
  
  
  
function tabs(swapLayer, numberOfTabs, stringNumber)
{
var tabs = numberOfTabs;
var strs = stringNumber;
var currLayer = swapLayer;
var currLayerIndex = currLayer.substring(0,strs);

for(i=1; i<=tabs; i++)
{

var currLayerRest = currLayerIndex + i;
document.getElementById(currLayerRest).style.display='none';
}
document.getElementById(currLayer).style.display='block';
}



//relona code for displaying ads starts			
		document.writeln(decodeURIComponent("%3Cscript%20type%3D%22text%2Fjavascript%22%3Efunction%20relona_getClientWidth()%20%7B%0Avar%20myWidth%20%3D%200%0Aif(%20typeof(%20window.innerWidth%20)%20%3D%3D%20'number'%20)%20%7B%0A%2F%2FNon-IE%0AmyWidth%20%3D%20window.innerWidth%3B%0A%7D%20else%20if(%20document.documentElement%20%26%26%20(%20document.documentElement.clientWidth%20%7C%7C%20document.documentElement.clientHeight%20)%20)%20%7B%0A%2F%2FIE%206%2B%20in%20'standards%20compliant%20mode'%0AmyWidth%20%3D%20document.documentElement.clientWidth%3B%0A%7D%20else%20if(%20document.body%20%26%26%20(%20document.body.clientWidth%20%7C%7C%20document.body.clientHeight%20)%20)%20%7B%0A%2F%2FIE%204%20compatible%0AmyWidth%20%3D%20document.body.clientWidth%3B%0A%7D%0Areturn%20myWidth%3B%0A%7D%0Afunction%20relona_posy(obj)%0A%7B%0Avar%20curtop%20%3D%200%3B%0Atry%0A%7B%0Aif%20(obj.offsetParent)%20%0A%7B%0Ado%20%0A%7B%0Acurtop%20%2B%3D%20obj.offsetTop%3B%0A%7Dwhile%20(obj%20%3D%20obj.offsetParent)%3B%0Areturn%20curtop%3B%0A%7D%0A%7D%0Acatch(relona_e)%7B%7D%0Areturn%200%3B%0A%7D%0Afunction%20relona_posx(obj)%0A%7B%0Avar%20curleft%20%3D%200%3B%0Atry%0A%7B%0Aif%20(obj.offsetParent)%20%0A%7B%0Ado%20%0A%7B%0Acurleft%20%2B%3D%20obj.offsetLeft%3B%0A%7Dwhile%20(obj%20%3D%20obj.offsetParent)%3B%0Areturn%20curleft%3B%0A%7D%0A%7D%0Acatch(relona_e)%7B%7D%0A%0Areturn%200%3B%0A%7D%0A%0Avar%20v_relona_dim%3D0%3B%0Avar%20relona_top%3D0%0Avar%20relona_ea1_slot%3D%22%22%3B%0Avar%20relona_ea1_suffix%3D%22%22%3B%0Avar%20relona_offset%3D0%3B%0Avar%20relona_xoffset%3D0%3B%0Avar%20relona_ytop%3D0%3B%0Avar%20relona_leftid%3D%22%22%3B%0Avar%20relona_padding%3D0%3B%0Afunction%20relona_set_padding(pd)%0A%7B%0Arelona_padding%3Dpd%3B%0A%7D%0Afunction%20relona_set_top(tp)%0A%7B%0Arelona_top%3Dtp%3B%0A%7D%0Afunction%20relona_set_offset(os)%0A%7B%0Arelona_offset%3Dos%3B%0A%7D%0Afunction%20relona_area_begin(areaname%2Cendid)%0A%7B%0Avar%20psx%3B%0Avar%20psy%3B%0Av_relona_dim%3D0%3B%0Aif(!document.getElementById(areaname))return%3B%0Apsx%20%3D%20relona_posx(document.getElementById(areaname))%3B%0Apsy%20%3D%20relona_posy(document.getElementById(areaname))%3B%0Aif(relona_top%3Epsy)%20psy%20%3D%20relona_top%3B%0Av_relona_dim%20%3D%20relona_posy(document.getElementById(endid))%20-%20psy%20-%20relona_offset%3B%0Adocument.writeln(%22%3Cdiv%20id%3D%5C%22fill%22%2Bareaname%2B%22%5C%22%20style%3D%5C%22position%3Aabsolute%3Bleft%3A%22%2B(psx%2Brelona_padding)%2B%22px%3Btop%3A%22%2B(psy%2Brelona_padding)%2B%22px%3Bz-index%3A1%3B%5C%22%3E%22)%3B%0A%0A%7D%0Afunction%20relona_external_area_begin(areaname%2C%20leftid%2C%20xoffset%2C%20ytop%2C%20footerid%2C%20adwidth)%0A%7B%0Arelona_leftid%20%3D%20leftid%3B%0Arelona_xoffset%20%3D%20xoffset%3B%0Arelona_ytop%20%3D%20ytop%3B%0Avar%20psx%3B%0Avar%20psy%3B%0A%0Apsx%20%3D%20relona_posx(document.getElementById(leftid))%2Bxoffset%3B%0Apsy%20%3D%20ytop%3B%0Av_relona_dim%20%3D%20relona_posy(document.getElementById(footerid))%20-%20psy%20-%20relona_offset%3B%0Avar%20psw%20%3D%20relona_getClientWidth()%3B%0Aif(adwidth%20%2B%20psx%20%2B%2016%20%3E%3D%20psw%20%7C%7C%20psx%3C%3D0)%0A%7B%0Av_relona_dim%3D-1%3B%0Areturn%3B%0A%7D%0Adocument.writeln(%22%3Cdiv%20id%3D%5C%22fill%22%2Bareaname%2B%22%5C%22%20style%3D%5C%22position%3Aabsolute%3Bleft%3A%22%2Bpsx%2B%22px%3Btop%3A%22%2Bpsy%2B%22px%3Bz-index%3A1%3Bwidth%3A%22%2Badwidth%2B%22px%3B%5C%22%3E%22)%3B%0A%0A%7D%0Afunction%20relona_html_slot(slotheight%2Chtmlcode)%0A%7B%0Aif(v_relona_dim%3Eslotheight)%0A%7B%0Adocument.writeln(htmlcode)%3B%0Av_relona_dim%20%3D%20v_relona_dim-slotheight%3B%0Av_relona_dim%3D0%3B%0A%7D%0A%7D%0Afunction%20relona_gam_slot(slotheight%2Cslotname)%0A%7B%0Aif(v_relona_dim%3Eslotheight)%0A%7B%0AGA_googleFillSlot(slotname)%3B%0Av_relona_dim%20%3D%20v_relona_dim-slotheight%3B%0Av_relona_dim%3D0%3B%0A%7D%0A%7D%0Afunction%20relona_gam_slot_extended_A_begin(slotheight%2Cslotname%2Cprefixcode%2Csuffixcode)%0A%7B%0Aif(v_relona_dim%3Eslotheight)%0A%7B%0Av_relona_dim%20%3D%20v_relona_dim-slotheight%3B%0Av_relona_dim%3D0%3B%0Arelona_ea1_slot%3Dslotname%3B%0Arelona_ea1_suffix%3Dsuffixcode%3B%0Adocument.write(prefixcode)%3B%0A%7D%0Aelse%0A%7B%0Arelona_ea1_slot%3D%22%22%3B%0Arelona_ea1_suffix%3D%22%22%3B%0A%7D%0A%7D%0Afunction%20relona_gam_slot_extended_A_body()%0A%7B%0Aif(relona_ea1_slot.length%3E0)%0A%7B%0AGA_googleFillSlot(relona_ea1_slot)%3B%0A%7D%0A%7D%0Afunction%20relona_gam_slot_extended_A_end()%0A%7B%0Aif(relona_ea1_slot.length%3E0)%0A%7B%0Adocument.write(relona_ea1_suffix)%3B%0A%7D%0A%7D%0A%0Afunction%20relona_area_end(areaname)%0A%7B%0Av_relona_dim%3D0%3B%0Arelona_top%3D0%3B%0Arelona_offset%3D0%3B%0Arelona_ea1_slot%3D%22%22%3B%0Arelona_ea1_suffix%3D%22%22%3B%0A%0A%0Aif(!document.getElementById(areaname))%0A%7B%0Arelona_padding%3D0%3B%0Areturn%3B%0A%7D%0A%0Adocument.writeln(%22%3C%2Fdiv%3E%22)%3B%0Arelona_connect(areaname%2C%22fill%22%2Bareaname%2Crelona_padding)%3B%0Arelona_padding%3D0%3B%0A%7D%0Afunction%20relona_external_area_end(areaname)%0A%7B%0A%0A%0Adocument.writeln(%22%3C%2Fdiv%3E%22)%3B%0Arelona_external_connect(relona_leftid%2Crelona_xoffset%2Crelona_ytop%2C%22fill%22%2Bareaname)%3B%0A%0Arelona_leftid%3D%22%22%3B%0Arelona_xoffset%3D0%3B%0Arelona_ytop%3D0%3B%0Av_relona_dim%3D0%3B%0Arelona_offset%3D0%3B%0Arelona_ea1_slot%3D%22%22%3B%0Arelona_ea1_suffix%3D%22%22%3B%0A%7D%0Afunction%20relona_connect_2(outside%2Cinside%2Crpd)%0A%7B%0Atry%0A%7B%0Avar%20xcorr%3D0%3B%0Avar%20ycorr%3D0%3B%0A%0Avar%20insideobj%20%3D%20document.getElementById(inside)%3B%0Avar%20outsideobj%20%3D%20document.getElementById(outside)%3B%0A%0Aif(typeof%20insideobj.relonax%20!%3D%20%22undefined%22)%0A%7B%0Axcorr%20%3D%20insideobj.relonax%20-%20relona_posx(insideobj)%3B%0Aycorr%20%3D%20insideobj.relonay%20-%20relona_posy(insideobj)%3B%0A%7D%0Ainsideobj.relonax%20%3D%20(rpd%2Brelona_posx(outsideobj)%2Bxcorr)%3B%0Ainsideobj.relonay%20%3D%20(rpd%2Brelona_posy(outsideobj)%2Bycorr)%3B%0A%0Ainsideobj.style.left%20%3D%20insideobj.relonax%2B%22px%22%3B%0Ainsideobj.style.top%20%3D%20insideobj.relonay%2B%22px%22%3B%0A%0Aoutsideobj.style.height%20%3D%20(rpd%2Brpd%2Binsideobj.offsetHeight)%2B%22px%22%3B%0Aoutsideobj.style.width%20%3D%20(rpd%2Brpd%2Binsideobj.offsetWidth)%2B%22px%22%3B%0A%7D%0Acatch(relona_e)%0A%7B%7D%0A%7D%0Afunction%20relona_connect(outside%2Cinside%2Crpd)%0A%7B%0AsetInterval(%22relona_connect_2(%5C%22%22%2Boutside%2B%22%5C%22%2C%5C%22%22%2Binside%2B%22%5C%22%2C%22%2Brpd%2B%22)%3B%22%2C500)%3B%0A%7D%0Afunction%20relona_external_connect_2(leftid%2Cxoffset%2Cyoffset%2Cholder)%0A%7B%0Atry%0A%7B%0Avar%20xcorr%3D0%3B%0Avar%20ycorr%3D0%3B%0A%0Avar%20leftobj%20%3D%20document.getElementById(leftid)%3B%0Avar%20holderobj%20%3D%20document.getElementById(holder)%3B%0A%0Aif(typeof%20holderobj.relonax%20!%3D%20%22undefined%22)%0A%7B%0Axcorr%20%3D%20holderobj.relonax%20-%20relona_posx(holderobj)%3B%0Aycorr%20%3D%20holderobj.relonay%20-%20relona_posy(holderobj)%3B%0A%7D%0Aholderobj.relonax%20%3D%20(relona_posx(leftobj)%2Bxoffset%20%2B%20xcorr)%3B%0Aholderobj.relonay%20%3D%20yoffset%20%2B%20ycorr%3B%0A%0Aholderobj.style.left%20%3D%20holderobj.relonax%20%2B%20%22px%22%3B%0Aholderobj.style.top%20%3D%20holderobj.relonay%20%2B%20%22px%22%3B%0A%0Aif(relona_posx(leftobj)%2Bxoffset%20%3E%200)%0A%7B%0Aholderobj.style.display%3D%22block%22%3B%0A%7D%0Aelse%0A%7B%0Aholderobj.style.display%3D%22none%22%3B%0A%7D%0A%7D%0Acatch(relona_e)%7B%7D%0A%7D%0Afunction%20relona_external_connect(leftid%2Cxoffset%2Cyoffset%2Cholder)%0A%7B%0AsetInterval(%22relona_external_connect_2(%5C%22%22%2Bleftid%2B%22%5C%22%2C%22%2Bxoffset%2B%22%2C%22%2Byoffset%2B%22%2C%5C%22%22%2Bholder%2B%22%5C%22)%3B%22%2C500)%3B%0A%7D%0A%0Afunction%20relona_nop()%0A%7B%0A%7D%0Awindow.onerror%20%3D%20relona_nop%3B%3C%2Fscript%3E"));

//relona code for displaying ads ends		

