
//function ovr2wlbToolTipCmplSub(string1){
function wid_convForJSUse(string1){
	string1 = string1.replace(/&lt;/g,'<' );
	string1 = string1.replace(/&gt;/g,'>' );
	string1 = string1.replace(/&amp;/g,'&' );
	string1 = string1.replace(/&quot;/g,'"' );
	
	return string1;
}


function wid_donothing(){
//do nothing
}

/*function wid_sendwindowsize() {
	var myWidth = 0;
	if( typeof( window.innerWidth ) == 'number' ) {
		//Non-IE
		myWidth = window.innerWidth;
	} else if( document.documentElement && ( document.documentElement.clientWidth ) ) {
		//IE 6+ in 'standards compliant mode'
		myWidth = document.documentElement.clientWidth;
	} else if( document.body && ( document.body.clientWidth ) ) {
		//IE 4 compatible
		myWidth = document.body.clientWidth;
	}

	naviAjax = new sack();				
	naviAjax.requestFile = wid_root + 'mod_pub/setsessinfos.php?windowwidth='+myWidth;
	naviAjax.onCompletion = wid_donothing;
	naviAjax.runAJAX();
}
*/


/* =========================================
	 =========================================
	 Search Suggestions
   ====================================== */
   
var ajaxSearchSugg3;
function ajaxSearchSuggStart_Sub( CatID, CatID_Origin, searchWords, SucheInGanz2WiD, Search, total){

	ajaxSearchSugg3 = new sack();
	ajaxSearchSugg3.requestFile = wid_root + "mod_ajax/getWordSuggestsv3.php?wl=" + searchWords + 
																	'&amp;CatID=' + CatID + '&amp;CatID_Origin=' + CatID_Origin + 
																	'&amp;SucheInGanz2WiD' + SucheInGanz2WiD;
	ajaxSearchSugg3.runAJAX();
	ajaxSearchSugg3.onCompletion = function() { widCreateSuggestV3(); }; 
}

function widCreateSuggestV3(  )
{
	el = document.getElementById('ajaxWordSuggest0003');
	el.innerHTML = ajaxSearchSugg3.response;
}

function w2str_decodeHtmlSonderz(str){
	str = str.replace(/&uuml;/g,'ü' );
	str = str.replace(/&Uuml;/g,'Ü' );
	str = str.replace(/&ouml;/g,'ö' );
	str = str.replace(/&Ouml;/g,'Ö' );
	str = str.replace(/&auml;/g,'ä' );
	str = str.replace(/&Auml;/g,'Ä' );
	str = str.replace(/&szlig;/g,'ß' );
	str = str.replace(/&euro;/g,'€' );
	//hier kommen noch am besten welche dazu
	return str;
}

function w2str_encodeSonder01(str){
	str = str.replace(/%/g,'%25' ); 
	str = str.replace(/ü/g,'%FC' );
	str = str.replace(/Ü/g,'%DC' );
	str = str.replace(/ö/g,'%F6' );
	str = str.replace(/Ö/g,'%D6' );
	str = str.replace(/ä/g,'%E4' );
	str = str.replace(/Ä/g,'%C4' );
	str = str.replace(/ß/g,'%DF' );
	str = str.replace(/€/g,'%u20AC' );
	str = str.replace(/\$/g,'%24' );
	str = str.replace(/ /g,'%20' );

	return str;
}


/* =========================================
	 =========================================
   AJAX Code-Kit (SACK)
   ====================================== */
/* Simple AJAX Code-Kit (SACK) */
/* ©2005 Gregory Wild-Smith */
/* www.twilightuniverse.com */
/* Software licenced under a modified X11 licence, see documentation or authors website for more details */

function sack(file){this.AjaxFailedAlert="Ihr Browser unterstuetzt leider nicht jedes Feature(27516) dieser Seite. Wir haben diese Seite mit Firefox(TM) erfolgreich getestet.\n";this.requestFile=file;this.method="POST";this.URLString="";this.encodeURIString=true;this.execute=false;this.ZusatzAttrib1="";this.ZusatzAttrib2="";this.onLoading=function(){};this.onLoaded=function(){};this.onInteractive=function(){};this.onCompletion=function(){};this.createAJAX=function(){try{this.xmlhttp=new ActiveXObject("Msxml2.XMLHTTP");}catch(e){try{this.xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");}catch(err){this.xmlhttp=null;}}if(!this.xmlhttp&&typeof XMLHttpRequest!="undefined"){this.xmlhttp=new XMLHttpRequest();}if(!this.xmlhttp){this.failed=true;}};this.setVar=function(name,value){if(this.URLString.length<3){this.URLString=name+"="+value;}else{this.URLString+="&"+name+"="+value;}};this.encVar=function(name,value){var varString=encodeURIComponent(name)+"="+encodeURIComponent(value);return varString;};this.encodeURLString=function(string){varArray=string.split("&");for(i=0;i<varArray.length;i++){urlVars=varArray[i].split("=");if(urlVars[0].indexOf("amp;")!=-1){urlVars[0]=urlVars[0].substring(4);}varArray[i]=this.encVar(urlVars[0],urlVars[1]);}return varArray.join("&");};this.runResponse=function(){eval(this.response);};this.runAJAX=function(urlstring){this.responseStatus=new Array(2);if(this.failed&&this.AjaxFailedAlert){alert(this.AjaxFailedAlert);}else{if(urlstring){if(this.URLString.length){this.URLString=this.URLString+"&"+urlstring;}else{this.URLString=urlstring;}}if(this.encodeURIString){var timeval=new Date().getTime();this.URLString=this.encodeURLString(this.URLString);this.setVar("rndval",timeval);}if(this.element){this.elementObj=document.getElementById(this.element);}if(this.xmlhttp){var self=this;if(this.method=="GET"){var totalurlstring=this.requestFile+"?"+this.URLString;this.xmlhttp.open(this.method,totalurlstring,true);}else{this.xmlhttp.open(this.method,this.requestFile,true);}if(this.method=="POST"){try{this.xmlhttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded");}catch(e){}}this.xmlhttp.send(this.URLString);this.xmlhttp.onreadystatechange=function(){switch(self.xmlhttp.readyState){case 1:self.onLoading();break;case 2:self.onLoaded();break;case 3:self.onInteractive();break;case 4:self.response=self.xmlhttp.responseText;self.responseXML=self.xmlhttp.responseXML;self.responseStatus[0]=self.xmlhttp.status;self.responseStatus[1]=self.xmlhttp.statusText;self.onCompletion();if(self.execute){self.runResponse();}if(self.elementObj){var elemNodeName=self.elementObj.nodeName;elemNodeName.toLowerCase();if(elemNodeName=="input"||elemNodeName=="select"||elemNodeName=="option"||elemNodeName=="textarea"){self.elementObj.value=self.response;}else{self.elementObj.innerHTML=self.response;}}self.URLString="";break;}};}}};this.createAJAX();}


