// JavaScript Document





function open_configurator(url, w, h){
	if(!url){
	//	alert("open_configurator("+url+"): needs url");
	}
	// if   location.href="http://www.google.com:80/search?q=devmo#test"
	// then location.host=www.google.com:80
	// and  location.path=/search
	// and  location.search=?q=devmo
	// for referrer tracking, we want to avoid the "dangerous" href-parts "//", ":", "?" or "&"
	var referrer = window.location.host + window.location.pathname;
	
	if(!w){ w=995; }
	if(!h){ h=700; }
	if(url.indexOf('?') > 0){
		url += "&";
	} else {
		url += "?";	
	}
	url += "referrer="+referrer;
	var myWin=window.open(url,"CONFIGURATORWINDOW","width="+w+",height="+h+",scrollbars=yes,status=no,resizable=no");
	myWin.focus();
}