function openWinOver(url,w, h, left, top, name)
{
	var options, newWin;
	options="width="+w+",height="+h+",";
	options+="left="+left+",top="+top+",";
	options+="resizeable=yes"+",status=yes";
	options+="menubar=no"+",scrollbars=no,";
	options+="toolbar=no"+",location=yes";
	options+="directories=no";
	newWin=window.open(url,name,options);
	newWin.focus();
}
//===================================================================
function openWinOver1(url,w, h, left, top, name)
{
	var options, newWin;
	options="width="+w+",height="+h+",";
	options+="left="+left+",top="+top+",";
	options+="resizeable=yes"+",status=yes";
	options+="menubar=no"+",scrollbars=yes,";
	options+="toolbar=no"+",location=yes";
	options+="directories=no";
	newWin=window.open(url,name,options);
	newWin.focus();
}
//===================================================================

function check_form_question() {
company=document.all['company'].value ;
city=document.all['city'].value ;
email=document.all['email'].value;
contact_person=document.all['contact_person'].value ;
message=document.all['message'].value ;
str="";
if (company=="")  str=str+"\n ";
if (city=="")  str=str+"\n";
if (email=="")  str=str+"\nE-mail";
if (contact_person=="")  str=str+"\n ";
if (message=="")  str=str+"\n ";

if (str!="")   {
str="\t!\n   :"+str;
alert(str);
return false;
}
else 
document.form_question.action="form_question_action.php4";
}


function null_form_question() {
document.all['message'].value ="" ;
document.all['company'].value="" ;
document.all['city'].value ="" ;
document.all['email'].value ="" ;
document.all['contact_person'].value ="" ;
}


/*****************************************************************************
 - display   / 
*************************************************************************/
	 var isIE = new Boolean(false);    
	 var isNav = new Boolean(false);    
	 var unSupported = new Boolean(false);    
	 var layer = new String();    
	 var style = new String(); 
	function  changeState_onclick(layerRef)
	{
	
		if(navigator.userAgent.indexOf("MSIE") != -1)
		{        
	  	 	isIE = true;
	   		layer = ".all.";
			style = ".style";     
	    }
		else if(navigator.userAgent.indexOf("Nav") != -1)
		{       
			 isNav = true;        
			 layer = ".layers.";        
		 	 style = "";
		}
		else
		{        
			 unSupported = true;      
		}
	 var vis;
	eval("vis = (document" + layer +  layerRef +style+".display == '')");

	//     
	if (vis)
	{
		eval("document" + layer + layerRef + style+".display = 'none'");
	}
	else
	{
		eval("document" + layer + layerRef +style+".display = ''");
	}
 }
/*****************************************************************************
    state - display    
*************************************************************************/

	function  getState_onclick(layerRef, state)
	{
		if(document.all){        
	  	 	isIE = true;
	   		 layer = ".all.";
			style = ".style";     
	    }else if(document.layers) {       
			 		isNav = true;        
					layer = ".layers.";        
		 			style = "";
		
		}else if (document.getElementById&&!(document.all)) {        
			   layer = ".getElementById.";        
		 			style = ".style";
					} else {
			   unSupported = true;      }
eval("document" + layer + layerRef + style+".display ='" + state+"'");
 } 
 
 function layer(layerName) {
 //Netscape 4
  if (document.layers) return "document.layers['"+layerName+"']";
 //DOM1
  if (document.getElementById&&!(document.all)) return   "document.getElementById('"+layerName+"')";
   //MSIE4
  if (document.all) return "document.all['"+layerName+"']";
  if (document.getElementById) return   "document.getElementById('"+layerName+"')";
 // 
  return null;
}
