function _popImage(imageURL,imageTitle)
{
	
}

	function popImage(imageURL,imageTitle)
	{
		//		alert('dfgsd');
		PositionX = 320;
		PositionY = 12;
		
		// Set these value approximately 20 pixels greater than the
		// size of the largest image to be used (needed for Netscape)
		
		defaultWidth  = 500;
		defaultHeight = 500;
		
		// Set autoclose true to have the window close automatically
		// Set autoclose false to allow multiple popup windows
		
		var AutoCloses = true;
		
		// Do not edit below this line...
		// ================================
		if (parseInt(navigator.appVersion.charAt(0))>=4){
		var isNN=(navigator.appName=="Netscape")?1:0;
		var isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}
		var optNN='scrollbars=no,width='+defaultWidth+',height='+defaultHeight+',left='+PositionX+',top='+PositionY;
		var optIE='scrollbars=no,width=400,height=400,left='+PositionX+',top='+PositionY;
		if (isNN)
		{
			imgWin=window.open('about:blank','',optNN);
		}
		if (isIE)
		{
			imgWin=window.open('about:blank','',optIE);
		}
		with (imgWin.document)
		{
			writeln('<html><head><title>Loading...</title><style>body{margin:0px;}</style>');writeln('<sc'+'ript>');
			writeln('var isNN,isIE;');writeln('if (parseInt(navigator.appVersion.charAt(0))>=4){');
			writeln('isNN=(navigator.appName=="Netscape")?1:0;');writeln('isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}');
			writeln('function reSizeToImage(){');writeln('if (isIE){');writeln('window.resizeTo(100,100);');
			writeln('width=100-(document.body.clientWidth-document.images[0].width);');
			writeln('height=100-(document.body.clientHeight-document.images[0].height);');
			writeln('window.resizeTo(width,height);}');writeln('if (isNN){');       
			writeln('window.innerWidth=document.images["George"].width;');writeln('window.innerHeight=document.images["George"].height;}}');
			writeln('function doTitle(){document.title="'+imageTitle+'";}');writeln('</sc'+'ript>');
			if (!AutoCloses)
				writeln('</head><body>')
			else 
				writeln('</head><body>');
			writeln('<img name="George" src='+imageURL+' style="display:block"></body></html>');
			close();		
		}
	}
	
	function check_form ()
	{
		clear_messages ();
		if (check_form_dest() == 0)
		{
			return;
		}
		
		var mes = ' Error';
		var flag = 1;

		if (document.getElementById('firstname').value == '')
		{
			flag = 0;
//			document.getElementById('divfirstname').innerHTML = mes;
			alert("Not all necessary fields was filled!\nNecessary fields are marked with \"*\"");
			document.getElementById('firstname').focus();
			return;
		}
		if (document.getElementById('lastname').value == '')
		{
			flag = 0;
//			document.getElementById('divlastname').innerHTML = mes;
			alert("Not all necessary fields was filled!\nNecessary fields are marked with \"*\"");
			document.getElementById('lastname').focus();
			return;
		}
		if (document.getElementById('address').value == '')
		{
			flag = 0;
//			document.getElementById('divaddress').innerHTML = mes;
			alert("Not all necessary fields was filled!\nNecessary fields are marked with \"*\"")
			document.getElementById('address').focus();
			return;
		}
		if (document.getElementById('city').value == '')
		{
			flag = 0;
//			document.getElementById('divcity').innerHTML = mes;
			alert("Not all necessary fields was filled!\nNecessary fields are marked with \"*\"")
			document.getElementById('city').focus();
			return;
		}
		if (document.getElementById('zip').value == '')
		{
			flag = 0;
//			document.getElementById('divzip').innerHTML = mes;
			alert("Not all necessary fields was filled!\nNecessary fields are marked with \"*\"")
			document.getElementById('zip').focus();
			return;
		}
		if (document.getElementById('phone').value == '')
		{
			flag = 0;
//			document.getElementById('divphone').innerHTML = mes;
			alert("Not all necessary fields was filled!\nNecessary fields are marked with \"*\"")
			document.getElementById('phone').focus();
			return;
		}
		var subject = document.getElementById('mail').value;
		var pattern = /^[a-zA-Z0-9][\+\_\.\-\w]{0,127}@[-a-zA-Z0-9]+\.[a-zA-Z0-9][\-a-zA-Z0-9\.]+$/;
		if (!pattern.test(subject)) 
		{
			flag = 0;
//			document.getElementById('divmail').innerHTML = mes;
			alert("Specify the correct E-mail")
			document.getElementById('mail').focus();
			return;
		}
		
		if(flag){
		  // for check dooble click per session
		   if (megaflag==0){
			  megaflag=1;
        document.getElementById('divwait').style.display="block";
  		  document.getElementById('total').submit();
		  }
	  }  
	}
	function clear_messages ()
	{
		document.getElementById('error').innerHTML = "";
		document.getElementById('divfirstname').innerHTML = " ";
		document.getElementById('divlastname').innerHTML = " ";
		document.getElementById('divaddress').innerHTML = " ";
		document.getElementById('divcity').innerHTML = " ";
		document.getElementById('divzip').innerHTML = " ";
		document.getElementById('divphone').innerHTML = " ";
		document.getElementById('divmail').innerHTML = " ";
	}
	
	function show_select_box (value)
	{
		switch (value)
		{
			case 1:
			
				document.getElementById('divusa').style.display = 'none';
				document.getElementById('susa').value = 0;
				
				document.getElementById('divother').style.display = 'none';
				document.getElementById('sother').value = 0;
				
				document.getElementById('divcanada').style.display = '';
				

				break;
			case 2:
				document.getElementById('divcanada').style.display = 'none';
				document.getElementById('scanada').value = 0;
				
				document.getElementById('divother').style.display = 'none';
				document.getElementById('sother').value = 0;
				
				document.getElementById('divusa').style.display = '';

				break;
			case 3:
				document.getElementById('divusa').style.display = 'none';
				document.getElementById('susa').value = 0;
				
				document.getElementById('divcanada').style.display = 'none';
				document.getElementById('scanada').value = 0;
				
				document.getElementById('divother').style.display = '';

				break;
			default:
				break;
		}
	}
	
	function check_form_dest ()
	{
		var radio = document.getElementsByName('choose');
		var flag = 0;
		var choose;
		
		for (var i=0;i<radio.length;i++)
		{
			if (radio[i].checked)
			{
				choose = i;
			}
		}
		
		switch (choose)
		{
			case 0:
				if (document.getElementById('scanada').value != 0)
					flag = 1;
				break;
			case 1:
				if (document.getElementById('susa').value != 0)
					flag = 1;
				break;
			case 2:
		 		if (document.getElementById('sother').value != 0)
					flag = 1;
				break;
		}
		
		if (flag == 1)
		{
			return 1;
		}
		else
		{
//			document.getElementById("error").innerHTML = "Please select your destination!";
			alert("Please select your destination!");
			return 0;
		}		
	}

	function check_quantity (id)
	{
		var subject = document.getElementById(id).value;
		var pattern = /^[0-9]+$/;
		if (!pattern.test(subject)) 
		{
			document.getElementById(id).value = '1';
			return;
		}
	}
	
	
	function onlynum() 
	{
	   	var k; 
	   	k=event.keyCode;
	   	if ((k >= 48 && k <= 57)) 
	   		return k
	   	else 
			return false
	}

 function Go(){
   if (Math.abs(count_i)==count_n){clearTimeout(timer_id2);
     //if (banner_inc==(-1)){ clearTimeout(timer_id2); }
     //banner_inc=-1;
     //count_i=count_i+banner_inc;
   }
   else{
   document.getElementById("div_banner").style.display="none";
   new_top=parseInt(document.getElementById("div_banner").style.top)+banner_inc;
   document.getElementById("div_banner").style.top=""+new_top+"px";
   document.getElementById("div_banner").style.display="block";
   
    timer_id2=setTimeout("Go(banner_inc)",10);
    count_i=count_i+banner_inc;
   }
  }
 
 function HideBanner(){
   document.getElementById("div_banner").style.display="none";
 }

 function ShowBanner(){
   banner_inc=1;
   Go();
   timer_id1=setTimeout("Go()",5500);
 }
 
function findPos(obj) 
{
  	var curleft = curtop = 0;
  	if (obj.offsetParent) 
  	{
	  	curleft = obj.offsetLeft;
    	curtop = obj.offsetTop;
    	while (obj = obj.offsetParent) 
    	{
      		curleft += obj.offsetLeft;
      		curtop += obj.offsetTop;
    	}
  	}
  	return [curtop,curleft];
}

	
	function test(id)
	{
		var td = document.getElementById('td'+id);
		var tmp = findPos(td);
		document.getElementById(id).style.top = tmp[0]+"px";
		document.getElementById(id).style.left = tmp[1]+50+"px";
		document.getElementById(id).style.display = '';
		document.getElementById('cat'+id).style.color = '#FDE093';
	}
	function hidesubmenu(id)
	{
		document.getElementById(id).style.display = 'none';
		document.getElementById('cat'+id).style.color = '#B49128';

	}
	
	function moverlist (id)
	{
	}
	
	function moutlist (id)
	{
	}

