﻿function displayMenu(currentMenu) {
var thisMenu = document.getElementById(currentMenu).style
//alert(currentMenu)
thisMenu = document.getElementById(currentMenu).style
if (thisMenu.display == "block") {
	thisMenu.display = "none"
} else {
	thisMenu.display = "block";
}
//return false
}
function check() {
	if((document.n_letter.mail.value.indexOf('@') == -1)||(document.n_letter.mail.value.length<8)||(document.n_letter.mail.value.indexOf('.') == -1))
	{
		alert("Внесовте непостоечки e-mail");
		document.n_letter.mail.focus();
		return;
	}
	document.n_letter.submit();
}
function search_prod() {
	document.isc.submit();
}
function comment() {
	window.open('comment.asp','comment','status=1, width=350, height=300, top=100, left=100')
}
function nema() {
	alert('Услугата е моментално недостапна!')
}
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() { //v9.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) 
  with (document) if (getElementById && ((obj=getElementById(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 redirect(x){
	for (m=temp.options.length-1; m>0; m--)
	temp.options[m]=null
	for (i=0; i < group[x].length; i++){
	temp.options[i]=new Option(group[x][i].text,group[x][i].value)
	}
	temp.options[0].selected=true
	redirect1(0)
}
function redirect1(y){
	for (m=temp1.options.length-1; m>0; m-- )
	temp1.options[m]=null
	for (i=0; i < secondgroup[document.isc.example.options.selectedIndex][y].length; i++){
	temp1.options[i]=new Option(secondgroup[document.isc.example.options.selectedIndex][y][i].text,secondgroup[document.isc.example.options.selectedIndex][y][i].value)
	}
	temp1.options[0].selected=true
}
