function show(i)
	{
		winpops=window.open("../show.php?i="+i+"","","width=550,height`0 ,menubar=no, status=no, location=no, toolbar=no, scrollbars=yes, resizable=yes, screenX0,screenY0,top0,left0")
	}
	
	
function ShowAll(Num)
{
	try{
			var	div_obj = document.getElementById( "div_test_" + Num )
			if (div_obj.style.display=='') 
			{
				div_obj.style.display='none'; 
				eval ("document.all.img_"+Num+".src='../images/Plus.gif'"); 
			}
			else
			{
				div_obj.style.display=''; 
				eval ("document.all.img_"+Num+".src='../images/minus2.gif'"); 
			}		
		}
		catch(e)
		{
			//alert(e.description)
		}
}

function Showprice(Num,id_course){
	//alert(id_course);
	document.getElementById('id_course_text').value=id_course;
	try{
			var	div_obj = document.getElementById( "div_test_" + Num )
			
				div_obj.style.display=''; 
					
		}
		catch(e)
		{
			//alert(e.description)
		}
}



function ValidationNumber()
{
   if ((event.keyCode > 0 && event.keyCode < 48)  || 
      (event.keyCode > 57)) 
	{   
	  event.returnValue = false;
	  alert("נא לרשום רק מספרים")
	}
}


var popUpWin=0;
function popUpWindow(URLStr, left, top, width, height)
{
  if(popUpWin)
  {
    if(!popUpWin.closed) popUpWin.close();
  }
  popUpWin = open(URLStr, 'popUpWin', 'toolbar=no,location=no,directories=no,status=no,menub ar=no,scrollbar=no,resizable=no,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');
}





function validation_contact(form){

	if(document.forms.form.tiptitle.value==""){
		alert("Please fill your Tip Title");
		document.forms.form.tiptitle.focus(); document.forms.form.tiptitle.select(); return false;}
		
	if(document.forms.form.tip.value==""){
		alert("Please fill your Tip Details");
		document.forms.form.tip.focus(); document.forms.form.tip.select(); return false;}
		
	if(document.forms.form.name.value==""){
		alert("Please fill your Name");
		document.forms.form.name.focus(); document.forms.form.name.select(); return false;}
	
	var reEmail = /^[-\w\d\.]+@[-\w\d\.]+\.[-\w\d\.]+$/;
	if(document.forms.form.email.value == ""){
			alert("Please fill your E-mail")
			document.forms.form.email.focus()
			return false;	
		}
		if (!(/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(form.email.value))){
			alert("Wrong E-mail. try again")
			document.forms.form.email.focus()
			return false;}
		
		if(document.forms.form.ver_number.value=="" || document.forms.form.ver_number.value.length!=5){
		alert("Please fill your Tip Title");
		document.forms.form.ver_number.focus(); document.forms.form.ver_number.select(); return false;}
	
}



