<!--
	function isEmail(Email_ad){
		x = Email_ad.indexOf("@");
		y = Email_ad.indexOf(".");
		if ((x == -1 || y == -1))
			return false;
		else
			return true;
	}
	
	function isPhone(num){
		str = num;
		var re=/[a-zA-Zא-ת]/g;
    if (re.test(str))
  		 return false;  
		else if ((num.length < 9) || (num.length > 16))
			return false;
		else
			return true;
	}
//CONTACT
	function checkContact() {
		frm = document.contactFrm;
		if (frm.field_fname.value == ""){
			alert('נא למלא שם פרטי');
			frm.field_fname.focus();
			return false;
		}
		if (frm.field_lname.value == ""){
			alert('נא למלא שם משפחה');
			frm.field_lname.focus();
			return false;
		}
		else if (frm.field_company.value == ""){
			alert('נא למלא שם חברה');
			frm.field_company.focus();
			return false;
		}
		else if (frm.field_email.value == ""){
			alert("נא למלא כתובת מייל");
			frm.field_email.focus();
			return false;
		}
		else if (!isEmail(frm.field_email.value)){
			alert("נא למלא כתובת מייל תקינה");
			frm.field_email.focus();
			return false;
		}
		else if (frm.field_phone.value == ""){
			alert("נא למלא מספר טלפון");
			frm.field_phone.focus();
			return false;
		}
		else if (!isPhone(frm.field_phone.value)){
			alert("נא למלא מספר טלפון תקין");
			frm.field_phone.focus();
			return false;
		}
		else{
			return true;
		}
	}
	
//FORUM
	function checkForum() {
		frm = document.contactFrm;
		if (frm.field_name.value == ""){
			alert('נא למלא שם מלא');
			frm.field_name.focus();
			return false;
		}
		if (frm.field_title.value == ""){
			alert('נא למלא כותרת');
			frm.field_title.focus();
			return false;
		}
		else{
			return true;
		}
	}
	
//REGISTER
	function checkRegister() {
		frm = document.registerFrm;
		if (frm.field_fname.value == ""){
			alert('נא למלא שם פרטי');
			frm.field_fname.focus();
			return false;
		}
		if (frm.field_lname.value == ""){
			alert('נא למלא שם משפחה');
			frm.field_lname.focus();
			return false;
		}
		else if (frm.field_email.value == ""){
			alert("נא למלא כתובת מייל");
			frm.field_email.focus();
			return false;
		}
		else if (!isEmail(frm.field_email.value)){
			alert("נא למלא כתובת מייל תקינה");
			frm.field_email.focus();
			return false;
		}
		else if (frm.field_phone.value == ""){
			alert("נא למלא מספר טלפון");
			frm.field_phone.focus();
			return false;
		}
		else if (!isPhone(frm.field_phone.value)){
			alert("נא למלא מספר טלפון תקין");
			frm.field_phone.focus();
			return false;
		}
		else{
			return true;
		}
	}
	
//NEWSLETTER
	function checkNL() {
		frm = document.nlFrm;
		if (frm.field_email.value == ""){
			alert("נא למלא כתובת מייל");
			frm.field_email.focus();
			return false;
		}
		else if (!isEmail(frm.field_email.value)){
			alert("נא למלא כתובת מייל תקינה");
			frm.field_email.focus();
			return false;
		}
		else{
			return true;
		}
	}
	
	
	//SEARCH
	function validSearch() {
		frm = document.searchFrm;
		if (frm.field_search.value == ""){
			alert("נא למלא טקסט לחיפוש");
			frm.field_search.focus();
			return false;
		}
		else{
			return true;
		}
	}

function MM_swapBackground(vsID, vsClass) { 
  eval("" + vsID + ".className='" + vsClass + "'")
}

//PRELOAD IMAGES
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.0
  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 && document.getElementById) x=document.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}


function ShowHideMessage(viCatID){
	/*
	if(navigator.appName == "WebTV")
{
 alert("You're using the WebTV browser.")
}
 if(navigator.appName == "Netscape")
{
 alert("You're using a Netscape browser.")
}
 if(navigator.appName == "Microsoft Internet Explorer")
{
 alert("You're using the Internet Explorer browser.")
}
alert("You are using :"+ navigator.appname)
	*/
//alert(eval("AllText" + viCatID + ".style.display"))
	
	if (eval("AllText" + viCatID))	{
		if (eval("AllText" + viCatID + ".style.display=='none'"))		{
			 if(navigator.appName == "Netscape")
{
			eval("AllText" + viCatID + ".style.display='table-row'")
} else  {
			eval("AllText" + viCatID + ".style.display='inline'")
}
	//		eval("catImg" + viCatID + ".src='images/tridown.gif'")
	//		eval("TR" + viCatID + ".className=TR" + viCatID + ".className.replace('Over','Click')")
	//		eval("TR" + viCatID + ".className=TR" + viCatID + ".className.replace('Out','Click')")
	//		eval("TR" + viCatID + ".className=TR" + viCatID + ".className.replace('Visited','Click')")
			//alert(eval("TR" + viCatID + ".className"))

		}
		else	{
			eval("AllText" + viCatID + ".style.display='none'")
	//		eval("catImg" + viCatID + ".src='images/tri.gif'")
	//		eval("TR" + viCatID + ".className=TR" + viCatID + ".className.replace('Click','Visited')")
			//alert(eval("TR" + viCatID + ".className"))
		}
	}
}

function ShowHideMessageForum(viCatID){
	if (eval("title_dark_" + viCatID))	{
		if (eval("title_dark_" + viCatID + ".style.display=='none'"))		{
			eval("bg_dark_t_" + viCatID + ".style.display='block'")
			eval("bg_dark_b_" + viCatID + ".style.display='block'")
			eval("title_dark_" + viCatID + ".style.display='block'")
			eval("description_dark_" + viCatID + ".style.display='block'")
			eval("icons_dark_" + viCatID + ".style.display='block'")
			eval("title_light_" + viCatID + ".style.display='none'")
			eval("TR" + viCatID + ".className=TR" + viCatID + ".className.replace('trLight','trDark')")
	//		eval("catImg" + viCatID + ".src='images/tridown.gif'")
		}
		else	{
			eval("bg_dark_t_" + viCatID + ".style.display='none'")
			eval("bg_dark_b_" + viCatID + ".style.display='none'")
			eval("title_dark_" + viCatID + ".style.display='none'")
			eval("description_dark_" + viCatID + ".style.display='none'")
			eval("icons_dark_" + viCatID + ".style.display='none'")
			eval("title_light_" + viCatID + ".style.display='block'")
			eval("TR" + viCatID + ".className=TR" + viCatID + ".className.replace('trDark','trLight')")
		}
	}
}

function displayImage(id,url,name){
	document.imageFrm.imageID.value = id;
	document.imageFrm.imageName.value = name;
	document.all.bigPic.src = "uploads/"+url;
}

//OPEN FORUM WINDOW
function openForumPop(id){
	url = "forum_pop.asp?id="+id;
	forumWin=window.open(url,'forumWin','status=no,resizable=no,scrollbars=no,location=no,left=0,top=0,width=400 height=300');
}

//OPEN PIC WINDOW
function openPic(id){
	id = document.imageFrm.imageID.value;
	url = "gallery_pop.asp?id="+id;
	imgWin=window.open(url,'imgWin','status=no,resizable=no,scrollbars=no,location=no,left=0,top=0,width=700 height=550');
}

function sendToImage(id,miPage)
{
	id = document.imageFrm.imageID.value;
	var sendImage = window.open ("SendImage_pop.asp?page="+miPage+"&ID=" + id, "sendImage", "menubar=no, adress=no, resizable=no, scrollbars=no, width=350, height=300");
}

function printImage(id)
{
	id = document.imageFrm.imageID.value;
	url = "gallery_pop.asp?print=1&id="+id;
	printImage=window.open(url,'printImage','status=no,resizable=no,scrollbars=no,location=no,left=0,top=0,width=400 height=450');
}

function checkSendTo() {
	if (document.sendFrm.email.value == ""){
		alert("Please enter email address to send to!");
		document.sendFrm.email.focus();
		return false;
	}
	else if (!isEmail(document.sendFrm.email.value)){
		alert("!Please enter valid email address");
		document.sendFrm.email.focus();
		return false;
	}
	else if (document.sendFrm.name.value == ""){
		alert("!Please enter name");
		document.sendFrm.name.focus();
		return false;
	}
	else
		 return true;
}


//ADD TO FAVORITES
function addToFavorites(url,siteName) {
	window.external.addfavorite(url,siteName);
}


function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

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 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 openBox(lsOpenName,lsCloseName) {
	alert(lsOpenName)	setTimeout("MM_showHideLayers(lsOpenName,'','show','close_1','','hide')",10);
  return true;
}
  

function closeBox(lsOpenName,lsCloseName) {
	liID = 1;
	setTimeout("MM_showHideLayers('open_1','','hide','close_1','','show')",10);   
  return true;
}

function MM_changeProp(objName,x,theProp,theValue) { //v6.0
  var obj = MM_findObj(objName);
  if (obj && (theProp.indexOf("style.")==-1 || obj.style)){
    if (theValue == true || theValue == false)
      eval("obj."+theProp+"="+theValue);
    else eval("obj."+theProp+"='"+theValue+"'");
  }
}

function gotoCategory(){
	document.categoryFrm.submit();
}

//OPEN VIDEO WINDOW
function openVideo(id){
	url = "video_pop.asp?id="+id;
	videoWin=window.open(url,'videoWin','status=no,resizable=no,scrollbars=no,location=no,left=0,top=0,width=500 height=500');
	
}

windowFormName=''
windowFieldImgName=''
//OPEN CALENDAR WINDOW
function openCalendar(formName,fieldName,lsDate){
	windowFormName=formName;
	windowFieldName=fieldName;
	url = "include/calendar.asp?date="+lsDate;
	calendarWin=window.open(url,'calendarWin','status=no,resizable=no,scrollbars=no,location=no,left=0,top=0,width=180 height=220');
	
}

function selectCatCareer(){
	id = document.careerFrm.cat_id.options[document.careerFrm.cat_id.selectedIndex].value
	document.location.href = "#id"+id;
}

function click(mouse){
	if (document.all) {
		if (event.button==2 || event.button==3){
			alert(message);
			return false;
		}
	}
	if (document.layer) {
		if (mouse.which==3){
			alert(message);
			return false;
		}
	}
}

if (document.layer) {
	document.captureEvents(event.mouseDown);
	function keypressed(){
		alert(message);
	}
}

function mmLoadMenus() {
  if (window.mm_menu_about_0) return;
                  window.mm_menu_about_0 = new Menu("root",120,16,"Verdana, Arial, Helvetica, sans-serif",10,"#FFFFFF","#FFFFFF","#015077","#3EA1BF","left","middle",3,0,500,-5,7,true,false,true,1,false,true);
  mm_menu_about_0.addMenuItem("Company&nbsp;Profile","location='innerpage.asp?id=19'");
  mm_menu_about_0.addMenuItem("Our&nbsp;Team","location='innerpage.asp?id=24'");
  mm_menu_about_0.addMenuItem("Partners&nbsp;&&nbsp;Vendors","location='innerpage.asp?id=20'");
   mm_menu_about_0.fontWeight="bold";
   mm_menu_about_0.hideOnMouseOut=true;
   mm_menu_about_0.bgColor='#EEEEEE';
   mm_menu_about_0.menuBorder=0;
   mm_menu_about_0.menuLiteBgColor='#FFFFFF';
   mm_menu_about_0.menuBorderBgColor='#CCCCCC';
   
	window.mm_menu_whats_0 = new Menu("root",120,16,"Verdana, Arial, Helvetica, sans-serif",10,"#FFFFFF","#FFFFFF","#015077","#3EA1BF","left","middle",3,0,500,-5,7,true,false,true,1,false,true);
  mm_menu_whats_0.addMenuItem("News&nbsp;And&nbsp;Events","location='events.asp'");
  mm_menu_whats_0.addMenuItem("Upcoming&nbsp;Products","location='innerpage.asp?id=22'");
   mm_menu_whats_0.fontWeight="bold";
   mm_menu_whats_0.hideOnMouseOut=true;
   mm_menu_whats_0.bgColor='#555555';
   mm_menu_whats_0.menuBorder=0;
   mm_menu_whats_0.menuLiteBgColor='#FFFFFF';
   mm_menu_whats_0.menuBorderBgColor='#777777';
  window.mm_menu_full_0 = new Menu("root",216,16,"Verdana, Arial, Helvetica, sans-serif",10,"#FFFFFF","#FFFFFF","#015077","#3EA1BF","left","middle",3,0,500,-5,7,true,false,true,1,false,true);
  mm_menu_full_0.addMenuItem("IP&nbsp;Set-Top&nbsp;Box","location='solutions.asp#id1'");
  mm_menu_full_0.addMenuItem("Embedded&nbsp;Digital&nbsp;Video&nbsp;Recorder","location='solutions.asp#id2'");
  mm_menu_full_0.addMenuItem("Network&nbsp;Security&nbsp;Camera","location='solutions.asp#id3'");
  mm_menu_full_0.addMenuItem("HD/SD&nbsp;Broadcast&nbsp;Encoder","location='solutions.asp#id4'");
  mm_menu_full_0.addMenuItem("System","location='innerpage.asp?id=23'");
   mm_menu_full_0.fontWeight="bold";
   mm_menu_full_0.hideOnMouseOut=true;
   mm_menu_full_0.bgColor='#555555';
   mm_menu_full_0.menuBorder=0;
   mm_menu_full_0.menuLiteBgColor='#FFFFFF';
   mm_menu_full_0.menuBorderBgColor='#777777';
   
    window.mm_menu_prod_0_1 = new Menu("TI&nbsp;DSP&nbsp;Development&nbsp;Tools",80,16,"Verdana, Arial, Helvetica, sans-serif",10,"#FFFFFF","#FFFFFF","#015077","#3EA1BF","left","middle",3,0,500,-5,7,true,false,true,1,false,true);
    mm_menu_prod_0_1.addMenuItem("Software","location='dev.asp?cat_id=3'");
    mm_menu_prod_0_1.addMenuItem("Hardware","location='dev.asp?cat_id=7'");
     mm_menu_prod_0_1.fontWeight="bold";
     mm_menu_prod_0_1.hideOnMouseOut=true;
     mm_menu_prod_0_1.bgColor='#555555';
     mm_menu_prod_0_1.menuBorder=0;
     mm_menu_prod_0_1.menuLiteBgColor='#FFFFFF';
     mm_menu_prod_0_1.menuBorderBgColor='#777777';
    window.mm_menu_prod_0_2 = new Menu("Microcontrollers",80,16,"Verdana, Arial, Helvetica, sans-serif",10,"#FFFFFF","#FFFFFF","#015077","#3EA1BF","left","middle",3,0,500,-5,7,true,false,true,1,false,true);
//    mm_menu_prod_0_2.addMenuItem("Software","location='dev.asp?cat_id=12'");
    mm_menu_prod_0_2.addMenuItem("Hardware","location='dev.asp?cat_id=13'");
     mm_menu_prod_0_2.fontWeight="bold";
     mm_menu_prod_0_2.hideOnMouseOut=true;
     mm_menu_prod_0_2.bgColor='#555555';
     mm_menu_prod_0_2.menuBorder=0;
     mm_menu_prod_0_2.menuLiteBgColor='#FFFFFF';
     mm_menu_prod_0_2.menuBorderBgColor='#777777';
  window.mm_menu_prod_0 = new Menu("root",177,16,"Verdana, Arial, Helvetica, sans-serif",10,"#FFFFFF","#FFFFFF","#015077","#3EA1BF","left","middle",3,0,500,-5,7,true,false,true,1,false,true);
  mm_menu_prod_0.addMenuItem(mm_menu_prod_0_1,"location='#'");
  mm_menu_prod_0.addMenuItem(mm_menu_prod_0_2,"location='#'");
  mm_menu_prod_0.addMenuItem("QNX","location='dev.asp?cat_id=14'");
  mm_menu_prod_0.addMenuItem("EVM&nbsp;&&nbsp;Application&nbsp;Boards","location='dev.asp?cat_id=19'");
  mm_menu_prod_0.addMenuItem("Boundary&nbsp;Scan","location='dev.asp?cat_id=20'");
  mm_menu_prod_0.addMenuItem("RnD","location='innerpage.asp?id=25'");
   mm_menu_prod_0.fontWeight="bold";
   mm_menu_prod_0.hideOnMouseOut=true;
   mm_menu_prod_0.childMenuIcon="arrows.gif";
   mm_menu_prod_0.bgColor='#555555';
   mm_menu_prod_0.menuBorder=0;
   mm_menu_prod_0.menuLiteBgColor='#FFFFFF';
   mm_menu_prod_0.menuBorderBgColor='#777777';

    window.mm_menu_dev_0_1 = new Menu("Video&nbsp;Codec",80,16,"Verdana, Arial, Helvetica, sans-serif",10,"#FFFFFF","#FFFFFF","#015077","#3EA1BF","left","middle",3,0,500,-5,7,true,false,true,1,false,true);
    mm_menu_dev_0_1.addMenuItem("Software","location='products.asp?cat_id=16'");
    mm_menu_dev_0_1.addMenuItem("Hardware","location='products.asp?cat_id=17'");
     mm_menu_dev_0_1.fontWeight="bold";
     mm_menu_dev_0_1.hideOnMouseOut=true;
     mm_menu_dev_0_1.bgColor='#555555';
     mm_menu_dev_0_1.menuBorder=0;
     mm_menu_dev_0_1.menuLiteBgColor='#FFFFFF';
     mm_menu_dev_0_1.menuBorderBgColor='#777777';
  window.mm_menu_dev_0 = new Menu("root",100,16,"Verdana, Arial, Helvetica, sans-serif",10,"#FFFFFF","#FFFFFF","#015077","#3EA1BF","left","middle",3,0,500,-5,7,true,false,true,1,false,true);
  mm_menu_dev_0.addMenuItem(mm_menu_dev_0_1,"location='#'");
  mm_menu_dev_0.addMenuItem("Audio&nbsp;codec","location='products.asp?cat_id=18'");
   mm_menu_dev_0.fontWeight="bold";
   mm_menu_dev_0.hideOnMouseOut=true;
   mm_menu_dev_0.childMenuIcon="arrows.gif";
   mm_menu_dev_0.bgColor='#555555';
   mm_menu_dev_0.menuBorder=0;
   mm_menu_dev_0.menuLiteBgColor='#FFFFFF';
   mm_menu_dev_0.menuBorderBgColor='#777777';

window.mm_menu_contact_0 = new Menu("root",78,16,"Verdana, Arial, Helvetica, sans-serif",10,"#FFFFFF","#FFFFFF","#015077","#3EA1BF","left","middle",3,0,500,-5,7,true,false,true,1,true,true);
  mm_menu_contact_0.addMenuItem("Careers","location='careers.asp'");
  mm_menu_contact_0.addMenuItem("Contact&nbsp;Us","location='contact.asp'");
   mm_menu_contact_0.fontWeight="bold";
   mm_menu_contact_0.hideOnMouseOut=true;
   mm_menu_contact_0.bgColor='#555555';
   mm_menu_contact_0.menuBorder=0;
   mm_menu_contact_0.menuLiteBgColor='#FFFFFF';
   mm_menu_contact_0.menuBorderBgColor='#777777';

mm_menu_contact_0.writeMenus();
} // mmLoadMenus()

//-->
