
	function fnOnClick_addMyBasket(id){
	document.add_Basket.text.value=id;
	//alert(id)
	document.add_Basket.submit();
	}
	
	function client_logoff(){
	document.location.reload();
	}
	
	
	
function fnOnClick_Aggry(){ 
	if(document.form1ClientRegistration.chAgr.checked){
	
	document.getElementById("cmbSendRedistration").disabled = false
	
	}
	else
	{
	document.getElementById("cmbSendRedistration").disabled = true	
	}
}


function fnOnClick_AggrySendOrder(){ 
	if(document.getElementById("chAgr").checked){
	document.getElementById("cmdSendOrder").disabled = false
	}
	else
	{
	document.getElementById("cmdSendOrder").disabled = true	
	}
}



function fShowPicture1(PicURL){
		document.picBox.src =PicURL
}







//======================================================================




function fMenuButtonStyle_mouseover(inID){ 
	document.getElementById('menuButtton' + inID).style.cursor = "hand";
	document.getElementById('menuButtton' + inID).style.color = '#66FF66';
	//document.getElementById('menuButtton' + inID).style.background = '#880000';
//	document.getElementById('menuButtton' + inID).background ='images/tds_bg_category_button.jpg';
	//document.getElementById('menuButtonPic' + inID).src ='images/tds_bg_category_button.jpg';
	
	// var el = document.getElementById('menuButtton' + inID);  
	// el.style.setProperty('background-image','url(images/tds_bg_category_button_over.jpg)',null);
	 
//	 theDiv = document.getElementById('menuButtton' + inID).style;
//	theDiv.setProperty('background-image','url(images/tds_bg_category_button_over.jpg)',null);

		  // el.style.color = '#66FF66'; //setProperty("background-color", "#c0c0c0"); 
		 //  el.style.setProperty("background-image", "images/tds_bg_category_button_over.jpg"); 
		   
	
	
	
}

function fMenuButtonStyle_mouseout(inID){ 
	document.getElementById('menuButtton' + inID).style.cursor = "default";
	document.getElementById('menuButtton' + inID).style.color = '#FFFFFF';
	//document.getElementById('menuButtton' + inID).style.background = '#CC0000';
	//document.getElementById('menuButtton' + inID).background ='images/tds_bg_category_button_over.jpg';
	//document.getElementById('menuButtonPic' + inID).src ='images/tds_bg_category_button.jpg';
}













//======== Statuss Bar ==================
var scrollID=Object;
var scrolling=false;
var killScroll=false;

function snapIn(jumpSpaces,position)
{
   var msg="Welcome to www.D-DConstruction.net !!!";
   var out="";
   if (killScroll) return false;
   for (var i=0; i<position;i++) out+=msg.charAt(i);
   for (i=1;i<jumpSpaces;i++) out+=" ";
   out+=msg.charAt(position);
   window.status=out;
   if (jumpSpaces<=1)
   {
      position++;
      if (msg.charAt(position)=='') position++;
      jumpSpaces=100-position;
   }
   else
      if (jumpSpaces>3) jumpSpaces*=0.75;
   else jumpSpaces--;
      if (position!=msg.length)
      {
         var cmd="snapIn("+jumpSpaces+","+position+")";
         scrollID=window.setTimeout(cmd,5);
      }
   else
      {
         scrolling=false;
         return false;
      }
   return true;
}

function snapSetup()
{
   if (scrolling)
   if (!confirm('Restart? '))
   return false;
   killScroll=true;
   scrolling=true;
   var killID=window.setTimeout('killScroll=false',6);
   scrollID=window.setTimeout('snapIn(100,0)',10);
   return true;
}










function modalWin(inFileName) {
	if (window.showModalDialog) {
	window.showModalDialog(inFileName,"D&D Construction", "dialogWidth:640px;dialogHeight:480px" );
	}
/*	else {
	window.open('+inFileName+','D&D Construction', 'height=255,width=250,toolbar=no,directories=no,status=no, menubar=no,scrollbars=no,resizable=no ,modal=yes');
/*	}
*/
} 