function open_big_pic(pic_str)
{
 a_win =  window.open ("big_pic_gen.asp?pic="+pic_str,"asd","toolbar=no,scrollbars=no,width=10,height=10");	
}

 function openContact() {
	//window.open('http://62.219.24.15/~ivisual/contact/index.php', 'contactForm', 'width=500, height=600, scrollbars=yes, top='+((screen.height / 4)-(600 / 2))+', left='+((screen.width / 4) - (600 / 2)));
	window.open('http://www.nextek.co.il/visual/contact/index.php', 'contactForm', 'width=500, height=600, scrollbars=yes, top='+((screen.height / 4)-(600 / 2))+', left='+((screen.width / 4) - (600 / 2)));
	}

 function AddBookmark()	
		{

		if (document.all)
		window.external.AddFavorite("<%=WebRoot%>","אתר מור בייבי")

		}

function clear_file(file_inp)
		{
					filename=document.getElementById(file_inp);
					filename2=document.getElementById("dis"+file_inp);
					filename.value="0";
					filename2.value="";
		}
	function open_popup_file(file_inp)
		{
			fname=document.getElementById("dis"+file_inp);
				if (fname.value!="" && fname.value!="0")
					{
						alert('עלך להסיר את הקובץ הקיים!');
					}	
				else 
					{
						open('../includes/popupfiles.asp?file='+file_inp,'file','width=250,height=150,left=180,top=180');
					}	
		}	

function resetpic(x)
{

picv=document.getElementById (x);
picv2=document.getElementById ("dis"+x);		
picv.value="";
picv2.value="";
}


function open_popup(x,ty)
{
	
		  pic=document.getElementById(x);	

			 
		 if (pic.value=="" || pic.value=="0")
			{
				open('../includes/popuppic.asp?id='+x+'&type='+ty,'pics','width=760,height=500,left=100,top=50,scrollbars=yes,toolbar=no');
			}
			else
			{
			   alert("עלייך להסיר את הקוב הקיים");
			}
 }
 
 
function open_popup_gallery(x)
		{
				  pic=document.getElementById("pic_2");	

				 if (pic.value=="")
					{
						open('../includes/popuppicgallery.asp?id='+x+'&w=130&h=150','pics','width=250,height=160,top=150,left=180');
	      			}
	      			else
	      			{
	      			   alert("עלך להסיר את התמונה הקיימת!");
	      			}
		 }		
		 
		 
	function open_popup_flash(x_str)
	{
	 window.open('../includes/popupflash.asp?id='+x_str+'&w=130&h=150','pics','width=250,height=160,top=150,left=180');
	}	 

	function show_hide_func(str_obj)
	{
		 all_to_hide = document.getElementsByTagName("DIV");
		 for(i=0;i<all_to_hide.length;i++)
			all_to_hide[i].style.display = "none";
		 if(document.getElementById(str_obj).style.display=="none")
		{
			  document.getElementById(str_obj).style.display = "";
		}
		else
		{
			 document.getElementById(str_obj).style.display = "none";
		}
	}

	function hide_func(str_obj)
	{
		 document.getElementById(str_obj).style.display = "none";
	}
