<!--
var boxText = "הקש מילת חיפוש";
//document.getElementById("txtSearch").value = boxText;
function hideText(obj) {
      if (obj.value == boxText) {
            obj.value = "";
      }
}

function showText(obj) {
      if (obj.value == "") {
            obj.value = boxText;
      }
}
 function FindNext () {
    var str = document.getElementById ("findField").value;
    if (str == "") {
        alert ("Please enter some text to search!");
        return;
    }

    var supported = false;
    var found = false;
    if (window.find) {        // Firefox, Safari
        supported = true;
            // if some content is selected, the start position of the search 
            // will be the end position of the selection
        found = window.find (str);
    }
    else {
        if (document.selection && document.selection.createRange) {        // Internet Explorer, Opera
            var textRange = document.selection.createRange ();
            if (textRange.findText) {   // Internet Explorer
                supported = true;
                    // if some content is selected, the start position of the search 
                    // will be the position after the start position of the selection
                if (textRange.text.length > 0) {
                    textRange.collapse (true);
                    textRange.move ("character", 1);
                }

                found = textRange.findText (str);
                if (found) {
                    textRange.select ();
                }
            }
        }
    }

    if (supported) {
        if (!found) {
            alert ("לא נמצאה מילת החיפוש המבוקשת:\n" + str);
        }
    }
    else {
        alert ("Your browser does not support this example!");
    }
}
function msgtoadmin()
{
	window.open("msgtoadmin.asp",null,"width=550, height=350, scrollbars=1");
}
function pop_up(forum_id,id)
{
	window.open("pop_up.asp?forum_id=" + forum_id + "&id=" + id,null,"width=600, height=350, scrollbars=1");
}
function openclose(id, el)
{
	if(document.getElementById(id).style.display=="none")
	{
		document.getElementById(id).style.display="";
		el.className = "faq-title-on";
	}	
	else
	{
		document.getElementById(id).style.display="none";
		el.className = "faq-title";
	}	
}

function xxxxxxxx()
{
	var xmlHttp;
	try
    {    // Firefox, Opera 8.0+, Safari    
		xmlHttp=new XMLHttpRequest();
	}
	catch (e)
    {    // Internet Explorer    
		try
			{
				xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
			}
			catch (e)
			{
				try
				{
					xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
				}
				catch (e)
				{
					alert("Your browser does not support AJAX!");
					return false;
				}      
		    }
    }
	xmlHttp.onreadystatechange=function()
    {
		if(xmlHttp.readyState==4)
        {
			document.getElementById("wwwwwww").innerHTML = xmlHttp.responseText;			
        }
    }
    xmlHttp.open("GET","xxxxxx.asp",true);
    xmlHttp.send(null); 
}

function enlarge(id){window.open("enlarge.asp?id=" + id,null,"width=450, height=450, scrollbars=0");}

function validNumber()
{
	if(event.keyCode < 48 || event.keyCode >57) event.keyCode=0;
}

function addToFavorites(url, sitename)
{
	window.external.AddFavorite(url,sitename);
}

function validMail(strEmail) //if valid mail - return true
{
	var r, re;
	var email = new String(strEmail);
	re = /\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/ig;
	if(email.search(re)==0) 
		return true;
	else
		return false;	
}

function printflash(src, w, h)
{
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"  codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="'+w+'" height="'+h+'" VIEWASTEXT>');
	document.write('<param name="movie" value="'+src+'">');
	document.write('<param name="quality" value="high">');
	document.write('<param name="wmode" value="transparent">');
	document.write('<embed src="'+src+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+w+'" height="'+h+'" wmode="transparent">');
	document.write('</object>');	
}

function validformR()
{
	if(document.contact.fname.value=="")
	{
		alert("נא לרשום שם פרטי");
		document.contact.fname.focus();
		return false;
	}
	if(document.contact.lname.value=="")
	{
		alert("נא לרשום שם משפחה");
		document.contact.lname.focus();
		return false;
	}
	if(document.contact.uname.value=="")
	{
		alert("נא לרשום שם משתמש");
		document.contact.uname.focus();
		return false;
	}
	if(document.contact.pass.value=="")
	{
		alert("נא לרשום סיסמא");
		document.contact.pass.focus();
		return false;
	}
	
	if(document.contact.email.value=="")
	{
		alert("נא לרשום אי-מייל");
		document.contact.email.focus();
		return false;
	}
	
	if(!validMail(document.contact.email.value))
	{
		alert("נא לרשום אי-מייל");
		document.contact.email.focus();
		return false;
	}
	if(document.contact.type_.value=="-1")
	{
		alert("בחר סוג לקוח");
		document.contact.type_.focus();
		return false;
	}	
	
	document.contact.submit();
	return true;
}
														
function validform()
{
	if(document.contact.fname.value=="")
	{
		alert("נא לרשום שם פרטי");
		document.contact.fname.focus();
		return false;
	}
	if(document.contact.lname.value=="")
	{
		alert("נא לרשום שם משפחה");
		document.contact.lname.focus();
		return false;
	}
	if(document.contact.phone.value=="")
	{
		alert("נא לרשום טלפון");
		document.contact.phone.focus();
		return false;
	}
	if(document.contact.email.value=="")
	{
		alert("נא לרשום אי-מייל");
		document.contact.email.focus();
		return false;
	}
	
	if(!validMail(document.contact.email.value))
	{
		alert("נא לרשום אי-מייל");
		document.contact.email.focus();
		return false;
	}	
	if(document.contact.captha.value=="")
	{
	alert("לפני הגשת טופס זה, אנא הקלד את מספר");
	document.contact.captha.focus();
	return false;
	}
	document.contact.submit();
	return true;
}
//-->