var DateNow = new Date();
function DateDemo()
{
var d, s , y , x=0;
  s = new String();
  y = new String();
  
  x = new Number();
  x = 0;
  s = "";
  y = "";
  
  s += DateNow.getDate() + ".";
  s += (DateNow.getMonth() + 1) + ".";
  y += DateNow.getYear();
  s += y;
  if (y <"1900") {
     s = ""
  }
  return(s);
}
/******************************/
 function LoadOnTop()
/****************************/
{  
var f =0;
	f = window.top.frames.length;	
	
	 if (f >0  ) {
	    window.top.location = "index.html";
	 }

}
/*****************************/
function showTime()
/*****************************/
{  
    //alert("Timer OnLine");
    var now = new Date();
    var h,m,s,t, TheTime;
	h = now.getHours();
	m = now.getMinutes();
	s = now.getSeconds();
	var day = now.getDate();
	var month = now.getMonth()+1; // numbered from 0
	var year = now.getYear();
	if (year < 1900) year += 1900;
     

	//document.f1.myDate.value = (day.toString() + "." +month.toString() + "." +year.toString());
	//document.f1.myTimer.value = h.toString(10) + ":" +  m.toString(10) + ":" + s.toString(10);
	TheTime = (day.toString() + "." +month.toString() + "." +year.toString()) + "  " + h.toString(10) + ":" +  m.toString(10) + ":" + s.toString(10);
	//alert(TheTime);
	document.f1.myTimer.value = TheTime;
	t=setTimeout("showTime()", 1000);
	
	return true;
}
//--------------------------
  function M1_onmouseover()
//-----------------------------
{
  document.images.M1.src = "GoToService_.gif";
}
    function M1_onmouseout()
{
	document.images.M1.src = "GoToService.gif";
}
function V41_onmouseout()
{
    document.images.Contact.src = "Contact.gif";
}
function V41_onmouseover()
{
	document.images.Contact.src = "Contact_.gif";
}
function FC_onmouseout()
{
    document.images.Component.src = "FindComponent.gif";
}
function FC_onmouseover()
{
	document.images.Component.src = "FindComponent_.gif";
}
function CE_onmouseout()
{
    document.images.Certif.src = "Certified.gif";
}
function CE_onmouseover()
{
	document.images.Certif.src = "Certified_.gif";
}
//////////////////////////////
  function NewList_onchange()
//////////////////////////////
{
  var s = document.forms.sl.NewList.value;
  var l = s.length;
    var ftype =s.substring(s.lastIndexOf(".")+1,l);
	//alert (ftype);
	if (ftype.toLowerCase() == "php") {
	        window.location = document.forms.sl.NewList.value;
		}	else {
		          window.location.reload()
			      if	(l>0) {
				         window.open(s);
				  }			  
						
		}	
		
}




