function Start_Search()

{         
  if (window.event.keyCode==13)
     {
      // this.Form1.ucSearch1_ibSearch.click();
       document.all("ucSearch1_ibSearch").click();
       return(false);
      }
  else
       return(true);

}


function Start_AdvSearch()
{         
  if (window.event.keyCode==13)
     {
      // this.Form1.ucSearch1_ibSearch.click();
       document.all("ucAdvanceSearch1_ibSearch").click();
       return(false);
      }
  else
       return(true);

}

function Start_Login()
{         
  if (window.event.keyCode==13)
     {
       document.all("UcLogin1_btnLogin").click();
       return(false);
      }
  else
       return(true);

}


function Start_Login1()
{         
  if (window.event.keyCode==13)
     {  
       document.all("btnLogin").click();
       return(false);
      }
  else
      {
       return(true);      
      }     
}


function Start_Login2()
{         
  if (window.event.keyCode==13)
     {
       document.all("UpdateBtn").click();
       return(false);
      }
  else
      {
         return(true);
      }
}


function norightclick()
{
 event.returnValue = false;
}


function nocopy()
{
 event.returnValue = false;
}


function nopaste()
{
 event.returnValue = false;
}


function MemberLogOut()
{
  window.open("../default/logout.aspx");
}

function minmenu(mID){
//prompt('',mID);
	if (document.all(mID).style.display==''){
		document.all(mID).style.display="none";	
	}else{
		document.all(mID).style.display="";	
	}
	
	
}

function openmenu(){
//alert(document.all("UcStoreCategories1_hCategoryID").value);
	if (document.all("UcStoreCategories1_hCategoryID")){	
		if (document.all("UcStoreCategories1_hCategoryID").value !=''){		
			var submenu='Sub'+document.all("UcStoreCategories1_hCategoryID").value.substring(0,1);
			if (document.all(submenu)){
				if (document.all(submenu).style.display==''){
					document.all(submenu).style.display="none";	
				}else{
					document.all(submenu).style.display="";	
				}			
			}
		}
	
	}
}


function changeimg(mID,pic){
//prompt('',mID);
//alert('1');
	document.all(mID).src='../images/store/'+pic;	
}

 function PrintTagData(id)
{
	var Item = document.getElementById(id);
	var printdetail = window.open("","TextareaDetail","width=750,height=600,scrollbars=yes");
	printdetail.document.open();
	printdetail.document.write("<HTML><HEAD><title>merrymartint.com</title><LINK href='../Css/EventCalendar.css' type='text/css' rel='stylesheet'></HEAD>");
	printdetail.document.write("<BODY  style='margin-left:10px;margin-top:15px;margin-right:10px;' onload=\"window.print();\" >");
	printdetail.document.write("<table width='100%'><tr><td><strong>merrymartint.com</strong></td></tr></table>");	
	printdetail.document.write(Item.outerHTML);	
	printdetail.document.close("</BODY></HTML>");
} 

function openSubmenu(mID){

//alert(mID);
/*	if (document.all('Sub'+mID)){		
		if (document.all('Sub'+mID).style.display=='none'){		
			document.all('Sub'+mID).style.display='block';
		}else{
			document.all('Sub'+mID).style.display='none';
		}		
	}*/

}


function Start_ProductSearch()
{         
  if (window.event.keyCode==13)
     {
	    if(document.all("UcProductSubShow1_imbSearch"))
	    {
			document.all("UcProductSubShow1_imbSearch").click();		
		}
		else if(document.all("ucSearchResult1_imbSearch"))
		{
			document.all("ucSearchResult1_imbSearch").click();		
		}
		return(false);
      }
  else
       return(true);

}

function setDisabled(sid)
{
	document.all(sid).style.display='none';
}
