function cricterm(termfile){
               window.open('http://thatscricket.oneindia.in/cricket-info/' + termfile, 'Terms','height=400,width=450,scrollbars,scrollbars,resizable=yes,scrollbars=yes');
        }

		
		
		
		
		
// Ball By Ball Pop up
function openWin( windowURL, windowName, windowFeatures ) 
{
	return window.open( windowURL, windowName, windowFeatures ) ;
}

function check()
{
	var Email= document.subscribe.emailID.value;
	
	if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,4})+$/.test(Email))
  	{
	   	return true;
  	}
  	else
  	{
   		alert("Enter valid Email ID");
		return false;
  	}
}







function check() 
{ 
var newslet = document.subscribe; 
if (newslet.emailID.value=="") 
 { 
    alert("Please enter your Name") 
    newslet.emailID.focus(); 
    return false; 
  } 
    else if (newslet.emailID.value=="") 
    { 
    alert("Enter your E-mail ID") 
    newslet.emailID.focus(); 
    return false; 
 } 
    else 
if((newslet.emailID.value.indexOf('.',0)=="-1")||(newslet.emailID.value.indexOf('@',0)=="-1")) 
{ 
 alert("Invalid E-Mail Address") 
    newslet.emailID.focus(); 
    return false; 
} 
} 

function addDomain(){document.loginForm.login.value=document.loginForm.login1.value+'@'+document.loginForm.domain.value;}



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=="")
   {
    window.alert("Please enter the Keyword");
    document.gsearch.q.focus();
    return false;
   }

   return true;
  }



function parse( )
{
  var regexS = "[\\?&]"+q+"=([^&#]*)";
  var regex = new RegExp( regexS );
  var tmpURL = window.location.href;
  var results = regex.exec( tmpURL );
  if( results == null )
    return "";
  else
    return results[1];
}



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;
}









//relona script for 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 script for ads ends//

//relona additional script for ads above 1024 res//

document.writeln(decodeURIComponent("%3Cscript%20type%3D%22text%2Fjavascript%22%3Efunction%20relona_scrolly()%0A%7B%0Avar%20retval%3D0%3B%0Aif%20(document.documentElement)%0A%7B%0Aretval%20%3D%20document.documentElement.scrollTop%3B%0A%7D%0Aelse%20if%20(document.body)%0A%7B%0Aretval%20%3D%20document.body.scrollTop%3B%0A%7D%0Aif(retval%3D%3D0%20%26%26%20typeof%20window.pageYOffset%20!%3D%20%22undefined%22)retval%20%3D%20window.pageYOffset%3B%0Areturn%20retval%3B%0A%7D%0A%0Avar%20relona_ml_name%3D%22%22%3B%0Avar%20relona_ml_array%3D%5B%5D%3B%0Avar%20relona_initialobj%3B%0Avar%20relona_insideinitobj%3B%0Avar%20relona_zset%3D100%3B%0Afunction%20relona_multilocation_begin(areaname%2Cinitialid)%0A%7B%0Arelona_insideinitobj%20%3D%20document.getElementById(areaname)%3B%0Arelona_initialobj%20%3D%20document.getElementById(initialid)%3B%0Aif(relona_initialobj!%3Dnull)%0A%7B%0Aif(relona_insideinitobj%3D%3Dnull)%0A%7B%0Avar%20initx%20%3D%20relona_posx(relona_initialobj)%3B%0Avar%20inity%20%3D%20relona_posy(relona_initialobj)%3B%0Arelona_ml_name%20%3D%20areaname%3B%0Adocument.writeln(%22%3C%22%2B%22div%20id%3D%5C%22ml%22%2Brelona_ml_name%2B%22%5C%22%20style%3D%5C%22position%3Aabsolute%3B%20left%3A%22%2Binitx%2B%22px%3B%20top%3A%22%2Binity%2B%22px%3B%20z-index%3A100%3B%5C%22%3E%22)%3B%0Avar%20loclist%20%3D%20%5B%5D%3B%0Aloclist%5B0%5D%20%3D%20initialid%3B%0Arelona_ml_array%5B%22ml%22%2Bareaname%5D%3Dloclist%3B%0A%7D%0Aelse%0A%7B%0Avar%20initx%20%3D%20relona_posx(relona_initialobj)%3B%0Avar%20inity%20%3D%20relona_posy(relona_initialobj)%3B%0Arelona_ml_name%20%3D%20areaname%3B%0Arelona_initialobj.style.position%3D%22relative%22%3B%0Arelona_initialobj.style.zIndex%3Drelona_zset%3B%0Arelona_insideinitobj.style.left%3D%220px%22%3B%0Arelona_insideinitobj.style.top%3D%220px%22%3B%0Arelona_insideinitobj.style.position%3D%22absolute%22%3B%0Arelona_insideinitobj.style.zIndex%3Drelona_zset%3B%0Arelona_insideinitobj.setposx%3D0%3B%0Arelona_insideinitobj.setposy%3D0%3B%0Avar%20loclist%20%3D%20%5B%5D%3B%0Aloclist%5B0%5D%20%3D%20initialid%3B%0Arelona_ml_array%5Bareaname%5D%3Dloclist%3B%0A%7D%0A%7D%0A%7D%0Afunction%20relona_ml_add(locid)%0A%7B%0Aif(relona_initialobj!%3Dnull)%0A%7B%0Aif(relona_insideinitobj%3D%3Dnull)%0Arelona_ml_array%5B%22ml%22%2Brelona_ml_name%5D%5Brelona_ml_array%5B%22ml%22%2Brelona_ml_name%5D.length%5D%20%3D%20locid%3B%0Aelse%0Arelona_ml_array%5Brelona_ml_name%5D%5Brelona_ml_array%5Brelona_ml_name%5D.length%5D%20%3D%20locid%3B%0A%7D%0A%7D%0Afunction%20relona_ml_item_html(htmlcode)%0A%7B%0Aif(relona_initialobj!%3Dnull)document.writeln(htmlcode)%3B%0A%7D%0Afunction%20relona_ml_item_script(jscode)%0A%7B%0Aif(relona_initialobj!%3Dnull)document.writeln(%22%3C%22%2B%22script%20type%3D%5C%22text%2Fjavascript%5C%22%3E%22%2Bjscode%2B%22%3C%22%2B%22%2Fscript%3E%22)%3B%0A%7D%0Afunction%20relona_multilocation_end(areaname)%0A%7B%0Aif(relona_initialobj!%3Dnull)%0A%7B%0Aif(relona_insideinitobj%3D%3Dnull)%0A%7B%0Adocument.writeln(%22%3C%22%2B%22%2Fdiv%3E%22)%3B%0AsetInterval(%22relona_ml_mon(%5C%22ml%22%2Brelona_ml_name%2B%22%5C%22)%3B%22%2C100)%3B%0A%7D%0Aelse%0A%7B%0AsetInterval(%22relona_ml_mon(%5C%22%22%2Brelona_ml_name%2B%22%5C%22)%3B%22%2C100)%3B%0A%7D%0A%7D%0A%7D%0Afunction%20relona_ml_mon(areaname)%0A%7B%0Avar%20adobj%20%3D%20document.getElementById(areaname)%3B%0Avar%20loclist%20%3D%20relona_ml_array%5Bareaname%5D%3B%0Avar%20len%20%3D%20loclist.length%3B%0Avar%20finalloc%20%3D%20loclist%5B0%5D%3B%0Avar%20i%3B%0Avar%20maxdiff%3D10000%3B%0Avar%20rsy%20%3D%20relona_scrolly()%3B%0Avar%20psy%3B%0Avar%20tobj%3B%0Avar%20dispy%20%3D%20adobj.clientHeight%3B%0Aif((typeof%20dispy)%20%3D%3D%20%22undefined%22)dispy%3D0%3B%0Afor(i%3D0%3Bi%3Clen%3Bi%2B%2B)%0A%7B%0Atobj%20%3D%20document.getElementById(loclist%5Bi%5D)%3B%0Aif(tobj%3D%3Dnull)continue%3B%0Apsy%20%3D%20relona_posy(tobj)%20%2B%20dispy%3B%0Aif(psy%3Ersy)%0A%7B%0Aif(maxdiff%3Epsy-rsy)%0A%7B%0Amaxdiff%20%3D%20psy-rsy%3B%0Afinalloc%20%3D%20loclist%5Bi%5D%3B%0A%7D%0A%7D%0A%7D%0A%0Avar%20targetobj%20%3D%20document.getElementById(finalloc)%3B%0Avar%20targetx%20%3D%20relona_posx(targetobj)%3B%0Avar%20targety%20%3D%20relona_posy(targetobj)%3B%0A%0A%0Aif((typeof%20adobj.setposx)%3D%3D%22undefined%22)%0A%7B%0Aadobj.setposx%20%3D%20relona_posx(document.getElementById(loclist%5B0%5D))%3B%0Aadobj.setposy%20%3D%20relona_posy(document.getElementById(loclist%5B0%5D))%3B%0A%7D%0A%0Avar%20corrx%20%3D%20adobj.setposx%20-%20relona_posx(adobj)%3B%0Avar%20corry%20%3D%20adobj.setposy%20-%20relona_posy(adobj)%3B%0A%0Aadobj.style.left%20%3D%20(corrx%20%2B%20targetx)%2B%22px%22%3B%0Aadobj.style.top%20%3D%20(corry%20%2B%20targety)%2B%22px%22%3B%0Aadobj.setposx%20%3D%20(corrx%20%2B%20targetx)%3B%0Aadobj.setposy%20%3D%20(corry%20%2B%20targety)%3B%0A%7D%0Afunction%20alert()%0A%7B%7D%3C%2Fscript%3E"));
//relona additional script for ads above 1024 res//
