   function goto(){
var commSelect = document.frmsearch.searchType;
var commIndex = commSelect.selectedIndex;

 if (commSelect.options[commIndex].value != '') {
location= commSelect.options[commIndex].value
}
}

function popUp2(URL) {
		day = new Date();
		id = day.getTime();
		eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=600,height=500,left = 0,top = 0');");
		}



function emptyBox(){
document.email.txtemail.value = "";

}


function Search(){
var varSearch = document.search.txtSearch.value
if (varSearch == 0)  {
alert('Search criteria can not be empty!');
document.search.txtSearch.focus();
return;
}

else{
document.search.submit()
}
}




function Email(){
var varSearch = document.email.txtemail.value
if (varSearch == 0)  {
alert('Email can not be empty!');
document.email.txtemail.focus();
return;
}

else{
document.email.submit()
}
}


function CloseTwo() {
				document.getElementById('two').style.visibility = 'hidden';
			}


function popSize(URL) {
		day = new Date();
		id = day.getTime();
		eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=490,height=410,left = 0,top = 0');");
		}


function display(which, strLinkPageProd, ProdName){
MainPic.innerHTML="<a href=" + strLinkPageProd + "><img style='BORDER-LEFT-COLOR: #000000; BORDER-BOTTOM-COLOR: #000000; BORDER-TOP-COLOR: #000000; BORDER-RIGHT-COLOR: #000000' src='http://www.emoda.com/prodimages/" + which + "' width='320'  border='1' hight='400'></a>"
}



function SwitchImg(which, desc, sizes){
MainPic.innerHTML="<img height='400' alt='' src='http://www.emoda.com/prodimages/" + which + "' width='320' class='imageBorder' onMouseOver=this.className='imageBorderDark' onMouseOut=this.className='imageBorder' >"
var sizestr;
if (sizes==''){
sizestr = ""
}
else {
sizestr = "<b>&#1056;&#1072;&#1079;&#1084;&#1077;&#1088;&#1099;:</b> <font color=blue>" + sizes + "</font>"
}
MainDesc.innerHTML= desc + sizestr
}

