// JavaScript Document
function showhideOld(id,val)
{
 if (val==0) document.getElementById(id).style.display = 'none';
 if (val==1) document.getElementById(id).style.display = 'block';
}
function showhide(id,val)
{

if (val==0) document.getElementById(id).style.display = 'none';
    var browser=navigator.appName;
    version=parseFloat(navigator.appVersion);
    if (browser == "Microsoft Internet Explorer"){
        if (val==1) document.getElementById(id).style.display = 'block';
    }else if(browser == "Netscape" && (version >=4.7))
    {
    //   if (val==1) document.getElementById(id).style.display = 'table-row';
       if (val==1) document.getElementById(id).style.display = 'block';
    }
}
// this function shows the pop-up when user moves the mouse over the link
function ShowSearchBox()
	{
		x = event.clientX + document.body.scrollLeft - 175; // get the mouse left position
		y = event.clientY + document.body.scrollTop + 15; // get the mouse top position 
		Popup.style.display="block"; // display the pop-up
		Popup.style.left = x; // set the pop-up's left
		Popup.style.top = y; // set the pop-up's top
	}
	// this function hides the pop-up when user moves the mouse out of the link
	function HideSearchBox()
	{
		Popup.style.display="none"; // hide the pop-up
	}
	
	function popUp()
	{
	
    var params;
    var intWidth = 700;
    var intHeight = 600;
    var intScroll =0;
    var intLocation =500; 
 
     if (document.all)
        var screenWidth = screen.width, screenHeight = screen.height;
     else
    if (document.layers)
      var screenWidth = window.outerWidth, screenHeight = window.outerHeight;
    else
      var screenWidth = 700, screenHeight=400;
 
     var widthOffset = (screenWidth - intWidth)/2, heightOffset = (screenHeight - intHeight)/2;
 
     params = 'width=' + intWidth;
     params += ',height=' + intHeight;
     params += ',screenX=' + widthOffset;
     params += ',screenY=' + heightOffset;
     params += ',top=' + heightOffset;
     params += ',left=' + widthOffset;
     params += ',scrollbars=' + intScroll;
     params += ',toolbar=no';
     params += ',location=' + intLocation;
     params += ',resizable=yes';

   window.open("http://localhost/KodakGCG/KodakGCGPages/FeedBack.aspx","welcome",'width=700,height=400,menubar=no,status=no,location=center,toolbar=no,resize=yes,scrollbars=no');
   }
   
   function OpenSearch() 
   {
      var strSearch ="";
      strSearch = document.getElementById("txtSearch").value;
    
      if (strSearch != "") {
        window.open("http://search.kodak.com/?pq-locale=en_US&global=en&q="+ strSearch +"","_blank","toolbar=yes, location=yes, directories=no, status=no, menubar=yes, scrollbars=yes, resizable=no, copyhistory=yes, width=400, height=400");
      }
      else
      {
        alert("Search field empty.");
      }
   }

//    function AllKodakBusiness()
//    {
//    alert("hi") ;   
//    //src="http://www.kodak.com/global/include/mul/corp/header/scripts.js">
//    var pq_locale=’en_US’;
//    //src="http://www.kodak.com/global/include/mul/corp/header/dropdown/dropdown.js"
//    }


