scrollStep=5
timerLeft=""
timerRight=""
function toLeft(id){
  document.getElementById(id).scrollLeft=0
}
function scrollDivLeft(id,passval){
  clearTimeout(timerRight);
  if(document.getElementById(id).scrollLeft<passval)
  {
  	document.getElementById(id).scrollLeft+=scrollStep;
  	timerRight=setTimeout("scrollDivLeft('"+id+"',"+passval+")",30);
  }
}
function scrollDivRight(id){
  clearTimeout(timerLeft)
  document.getElementById(id).scrollLeft-=scrollStep
  timerLeft=setTimeout("scrollDivRight('"+id+"')",30)
  
}
function toRight(id){
  document.getElementById(id).scrollLeft=document.getElementById(id).scrollWidth
}
function stopMe(){
  clearTimeout(timerRight) 
  clearTimeout(timerLeft)
}
       function show_curtab_content(tabid,divid)
		{
			if (document.getElementById(tabid,divid))
			{
				var divCollection = document.getElementsByTagName("div");
				var cname = '';
				for (var i=0; i<divCollection.length; i++)
				{
					if(divCollection[i].getAttribute("id"))
					{
						if(divCollection[i].getAttribute("id").substr(0,6)=="ultab_" && divCollection[i].getAttribute("id") != tabid)
						divCollection[i].style.display = 'none';
						else if(divCollection[i].getAttribute("id").substr(0,8)=="tabhead_" && divCollection[i].getAttribute("id") != tabid)
						divCollection[i].className = 'protableft';
					}		
				}
				document.getElementById(tabid).style.display = '';
				curobj = eval ("document.getElementById('"+divid+"')");
				if(curobj)
					curobj.className = 'pro_seltableft';
			}
		}

function validate_quote(frm)
{
		   
		   if(frm.name.value=='')
			{
				alert('Select the name');
				frm.name.focus();
				frm.name.select();
				return false;
			}
			else if(frm.telephone.value=='')
			{
				alert('Select the telephone');
				frm.telephone.focus();
				frm.telephone.select();
				return false;
			}
			else if(frm.email.value=='')
			{
				alert('Select the Email');
				frm.email.focus();
				frm.email.select();
				return false;
			}
			else
			{
				var res = frm.email.value.search(/^[^\.][A-Za-z0-9_\-\.]*[^\.]\@[^\.][A-Za-z0-9_\-\.]+((\.com)|(\.net)|(\.edu)|(\.mil)|(\.gov)|(\.org)|(\.info)|(\.biz)|(\.us)|(\.bizz)|(\.coop)|(\.uk.com)|(\.co.uk)|(\..{2,2}))[ ]*$/gi);
				if(frm.email.value < 5 || res==-1)
				{
					var alertEmail = 'Enter a Valid Email Address';
					alert(alertEmail);
					frm.email.focus();
					frm.email.select();
					return false;
				 }
				 else
				 {
					 return true;
				}
			}
}


  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-15352662-1']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();



