function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
//-->
function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}
function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function outdoor2()
{
var w = 700;
var h = 525;
var left = screen.width/2 - w/2;
var top = screen.height/2 - h/2;
window.open('ProductsList.aspx','','width='+w+',height='+h+',left='+left+',top='+top)
}
function ResetForm()
		{
			document.Form1.reset();
		}
		function validateit(Form1)
		{	
			var msg="";
			if (document.Form1.txtfirstname.value == "")
				msg +="- First Name\n" 
			if (document.Form1.txtlastname.value == "")
				msg +="- Last Name\n" 
			if (document.Form1.txtcompanyname.value == "")
				msg +="- Company Name\n" 
			
			if (document.Form1.lstcountry.value == "")
				msg +="- Country\n"
			
			if (document.Form1.txtmail.value == "")
			{
				msg +="- Email\n"
			}
			else
			{
				if( (document.Form1.txtmail.value.indexOf('@', 0) == -1) || (document.Form1.txtmail.value.indexOf('.') == -1) || (document.Form1.txtmail.value.indexOf(' ') > 0) || (document.Form1.txtmail.value.indexOf('#') > 0)) 
					msg +="- a valid Email Address\n" 
			}	 
			
			if (msg!="")
			{
				msg="Please enter the following information:\n" + msg
				alert(msg);
				return false;
			}
			else
				return true; 
		}
var active_div = "";
var active_link = "";

function showDiv(id, link_id, src){
	
	if (active_div != ""){
		active_div.style.display = "none";
	}
	
	active_div = MM_findObj(id);
	if(active_div != null){
		active_div.style.display = 'block';
	}
}

function toggleBlock(div_id){
	var d = MM_findObj(div_id);
	if(d != null){
		if(d.style.display == "block"){
			d.style.display = "none";
		} else {
			d.style.display = "block";
		}
	}
}
