<!--
function popup(page, name, width, height) { 

   var LeftPosition, TopPosition, settings, new_window;
      
   LeftPosition=(screen.width)?(screen.width-width)/2:100;
   TopPosition=(screen.height)?(screen.height-height)/2:100;
	 
	 if (name == 'targetblank')
	 {
	    settings='width='+width+',height='+height+',top='+TopPosition+',left='+LeftPosition+',scrollbars=yes,location=yes,directories=no,status=yes,menubar=yes,toolbar=yes,resizable=yes';
	 }
	 else
	 {
	    settings='width='+width+',height='+height+',top='+TopPosition+',left='+LeftPosition+',scrollbars=yes,location=no,directories=no,status=yes,menubar=no,toolbar=no,resizable=no';
	 }
	 
   new_window = window.open(page,name,settings);
			
   if (window.focus)
   {
	    new_window.focus();
	 }
}





function pop_question(lang) {

   var page;
	 
	 page = 'http://www.eurodisplay.com/blog_contact/contact_form.asp?lang=' + lang;
	 
   popup(page, 'question', '330', '450');
	 
	 return false;
	 
}





function google_search_textbox(txt, msg, state) {

   if (state == 'on') 
	 {
	    if (txt.value == msg) {
			   txt.value = '';
			}
	 }
	 else
	 {
	    if (txt.value == '') {
			   txt.value = msg;
			}
	 }

}





function setCookie(NameOfCookie, value, expiredays)
{

// Three variables are used to set the new cookie.
// The name of the cookie, the value to be stored,
// and finally the number of days until the cookie expires.
// The first lines in the function convert
// the number of days to a valid date.

var ExpireDate = new Date ();
ExpireDate.setTime(ExpireDate.getTime() + (expiredays * 24 * 3600 * 1000));

// The next line stores the cookie, simply by assigning
// the values to the "document.cookie" object.
// Note the date is converted to Greenwich Mean time using
// the "toGMTstring()" function.

document.cookie = NameOfCookie + "=" + escape(value) +
((expiredays == null) ? "" : "; expires=" + ExpireDate.toGMTString());
}
//-->