<!--
  function showImage(name) {
    var inc_y = 70;
    var inc_x = 10;
    params = "top=20, left=20,width=100, height=100, Status=no, toolbar=no, menubar=no, location=no, directories=no, scrollbars=no";
    popupWin = window.open("","popupWin",params);
    popupWin.focus();
    popupWin.document.open();
    popupWin.document.write("<html><head><title></title></head>");
    popupWin.document.write("<sc"+"ript language = JavaScript>");
    popupWin.document.write("function closeWindow(){");
    popupWin.document.write("parent.window.close() };");
    popupWin.document.write("</sc"+"ript>");
    popupWin.document.write("<body leftmargin='0' topmargin='0' marginwidth='0' marginheight='0'><a href=''><img src='"+name+"' border='0' name='cha1' onClick='closeWindow()' alt=''  onload='window.resizeTo(window.document.images[0].width+"+inc_x+",window.document.images[0].height+"+inc_y+")'></a></body></html>");
    popupWin.document.close();
  }



function display(num)
{
switch(num)
{
	case "Истра Холидей: стандартный":
	clearChild();
	document.getElementById('hidTable1').style.display = "";
	clearTbl(1);
	break;

	case "Истра Холидей: таун-хаус":
	clearChild();
	document.getElementById('hidTable1').style.display = "";
	clearTbl(1);
	break;

	case "Истра Холидей: коттедж":
	clearChild();
	document.getElementById('hidTable1').style.display = "";
	clearTbl(1);
	break;
	
	case "Лада Холидей: малый коттедж":
	clearChild();
	document.getElementById('hidTable2').style.display = "";
	clearTbl(2);
	break;

	case "Лада Холидей: большой коттедж":
	clearChild();
	document.getElementById('hidTable2').style.display = "";
	clearTbl(2);
	break;

	case "Лада Холидей: VIP - коттедж":
	clearChild();
	document.getElementById('hidTable2').style.display = "";
	clearTbl(2);
	break;
	
	case "Выберите номер":
	clearTbl();
	clearChild();
	break;
	
}
}

function clearTbl(num)
{
	for(i = 1; i<=10; i ++)
		{
			if(document.getElementById('hidTable' + i) && i != num)
				{
					document.getElementById('hidTable' + i).style.display = "none";
				}
		}
}

function createElement(text)
{
	for(i in text)
		{
			var parent = document.getElementById('sendz');
			var newP = document.createElement('option');
		    newP.value = text[i];
			newP.id = "option" + i;
		    var textNode = document.createTextNode(text[i]);
		    newP.appendChild(textNode);
		    parent.appendChild(newP);
		}	
}

function clearChild()
{

	var parent = document.getElementById('sendz');
	for(i=0; i < length; i++)
	{
	var	del = document.getElementById("option" + i);
	parent.removeChild(del);
	}
}



  -->



