function doMail(sendTo, subj) {
	if (sendTo.indexOf("@")> -1 ) { // if at-sign in sendto, assume full email address, else add default domain to address
		location.href = 'mailto:' + sendTo + '?Subject=' + subj.replace(' ', '%20');
	} else {
		location.href = 'mailto:' + sendTo.replace(' ', '.') + '@interfaceflor.eu?Subject=' + subj.replace(' ', '%20');
	}
}

function wcSearchHomepage (query, language) {
	if (query != null){
		if (query != ""){
			extendQry =
			"((FIELD+pageTitle+CONTAINS+" + query.replace(" ", "+") + ")+OR+" +
			"(FIELD+pageIntro+CONTAINS+" + query.replace(" ", "+") + ")+OR+" +
			"(FIELD+Body+CONTAINS+" + query.replace(" ", "+") + "))+AND+" +
			"(FIELD+Language+=+" + language + ")";
			url = server + path + "/searchpages?SearchView&Query=" +extendQry+"&SearchOrder=1&SearchMax=250&Start=1&Count=10&qry=" + query.replace(" ", "%20") + "&language="+language;
			//alert(url);
			document.location.href=url;
		}
	}
}

/*function wcGoCountry (cntry) {
	if (cntry != null){
		if (cntry != ""){
			url = server + path + "/webpages/" + cntry + ".html";
			document.location.href=url;
		}
	}
}*/
function wcGoCountry (url) {
	if (url != null){
		if (url != ""){
			document.location.href=url;
		}
	}
}
function showLargeImage(fileDir,image_name,product_name) {
  var img = image_name;
  var size = " width=600 height=600";
  image_window = window.open('','','toolbar=no,directories=no,status=no,menubar=no,scrollbars=no,width=600,height=600');

  image_window.document.open();
  image_window.document.writeln('<HTML> <HEAD> <TITLE>Interface - ' + product_name + '</TITLE> </HEAD>');
  image_window.document.writeln('<BODY BGCOLOR="#ffffff" marginheight="0" marginwidth="0" topmargin="0" leftmargin="0">');
  image_window.document.writeln('<table border=0 cellspacing=0 cellpadding=0 width=100% height=100%><tr><td align=center>');
  image_window.document.writeln('<A HREF="javascript:window.close(); window.opener.focus()">');
  image_window.document.writeln('<IMG SRC="'+ fileDir + img + '" BORDER=0 ALT="' + product_name + '"' + size +'></A>');
  image_window.document.writeln('</td></tr></table>');
  image_window.document.writeln('</BODY> </HTML>');
  image_window.document.close();

  image_window.focus();
}

