// JavaScript Document
function newsLetterValidate () {


		
		if (document.newsletterform.name.value==""){
			alert("The Name Feild is Required.")
			return false ;
		}
		
		var email=checkEmail('email');
		if (email==false){
			return false ;
		}
	}
	
function checkEmail(email){
	var email;
	var str=document.getElementById(email).value;
	//alert (str);
	
	var at="@"
	var dot="."
	var lat=str.indexOf(at)
	var lstr=str.length
	var ldot=str.indexOf(dot)
	if (str.indexOf(at)==-1){
	   alert("Invalid E-mail ID")
	   return false
	}

	if (str.indexOf(at)==-1 || str.indexOf(at)==0 || str.indexOf(at)==lstr){
	   alert("Invalid E-mail ID")
	   return false
	}

	if (str.indexOf(dot)==-1 || str.indexOf(dot)==0 || str.indexOf(dot)==lstr){
		alert("Invalid E-mail ID")
		return false
	}

	 if (str.indexOf(at,(lat+1))!=-1){
		alert("Invalid E-mail ID")
		return false
	 }

	 if (str.substring(lat-1,lat)==dot || str.substring(lat+1,lat+2)==dot){
		alert("Invalid E-mail ID")
		return false
	 }

	 if (str.indexOf(dot,(lat+2))==-1){
		alert("Invalid E-mail ID")
		return false
	 }
	
	 if (str.indexOf(" ")!=-1){
		alert("Invalid E-mail ID")
		return false
	 }

	 return true					
}



checkb=window.ie;

var message="All Rights Reserved august 2009";
function click(e)
{
  if (document.all)
  {
    if (event.button==2||event.button==3)
    {
      if (checkb==true){  alert(message);
      return false;
	  }
    }
  }
  else
  {
    if (e.button==2||e.button==3)
    {
      e.preventDefault();
      e.stopPropagation();
      if (checkb==true){  alert(message);
      return false;
	  }

      return false;
    }
  }
  
}

if (document.all) // for IE
{
  document.onmousedown=click;
}
else // for FF
{
  document.onclick=click;
}

/*
function makelotScrollbars(content,scrollbar,handle,horizontal,ignoreMouse){ var steps = $(content).getSize().scrollSize.y; fsteps=eval(steps); var slider = new Slider(scrollbar, handle, { steps: fsteps, mode: (horizontal?'horizontal':'vertical'), onChange: function(step){ var x = (horizontal?step:0); var y = (horizontal?0:step); content.scrollTo(x,y);}
}).set(0); if( !(ignoreMouse) ){ $$(content, scrollbar).addEvent('mousewheel', function(e){ e = new Event(e).stop(); var step = slider.step - e.wheel * 30; slider.set(step);});}
$(document.body).addEvent('mouseleave',function(){slider.drag.stop()});}
*/
