<!--
function win1 (pano)
{
	window.open(pano,"Panorama","width=758,height=512,Left=100,Top=0,resizable=yes,status=no");
}

function open_window_1(url) 
{
	zoom=window.open(url,"Zoom1",'width=670,height=600,toolbar=0,location=0,directories=0,status=0,menubar=1,scrollbars=1,copyhistory=0');
	var x = (screen.width-445);
	zoom.moveTo(0,0);
}
function open_window_2(url) 
{
	zoom=window.open(url,"Zoom2",'width=800,height=600,toolbar=0,location=0,directories=0,status=0,menubar=1,scrollbars=1,copyhistory=0');
	var x = (screen.width-400);
	zoom.moveTo(x,0);
}
function open_window_3(url) 
{
	zoom=window.open(url,"Zoom3",'width=800,height=600,toolbar=0,location=0,directories=0,status=0,menubar=1,scrollbars=1,copyhistory=0');
	var x = (screen.width/2)-400;
	zoom.moveTo(x,150);
}
function open_window_5(url) 
{
	zoom=window.open(url,"Zoom2",'width=500,height=550,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,copyhistory=0');
	var x = (screen.width/2)-250;
	zoom.moveTo(0,0);
}
function clearText(thefield){
	if (thefield.defaultValue==thefield.value)
	thefield.value = "";
}


var bookmarkurl="http://www.messe1x1.de"
var bookmarktitle="messe1x1.de - Das Messe-Portal"

function addbookmark()
{
	window.external.AddFavorite(bookmarkurl,bookmarktitle);
}

function Go(x)
{
      if(x == "nothing")
      {
        document.forms[0].reset();
        document.forms[0].elements[0].blur();
        return;
      }
      //else if(x == "end") top.location.href = parent.frames[1].location;
      else
      {
        location.href = x;
        document.forms[0].reset();
        document.forms[0].elements[0].blur();
      }
}
	
var win=null;
	
function NewWindow(mypage,myname,w,h,pos,infocus)
{
	if(pos=="random"){myleft=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;mytop=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
	if(pos=="center"){myleft=(screen.width)?(screen.width-w)/2:100;mytop=(screen.height)?(screen.height-h)/2:100;}
	else if((pos!='center' && pos!="random") || pos==null){myleft=20;mytop=20}
	settings="width=" + w + ",height=" + h + ",top=" + mytop + ",left=" + myleft + ",scrollbars=yes,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no,dependent=no";win=window.open(mypage,myname,settings);
	win.focus();
}
function CountMax() 
{ 
	
	wert = max-document.formular.jobs_beschreibung.value.length; 
	if (wert < 0)
	{ 
		alert("Es dürfen nicht mehr als " + max + " Zeichen eingegeben werden!"); 
		document.formular.jobs_beschreibung.value = document.formular.jobs_beschreibung.value.substring(0,max); 
		wert = max-document.formular.jobs_beschreibung.value.length; 
		document.formular.rv_counter.value = wert; 
	}
	else
	{ 
		document.formular.rv_counter.value = max - document.formular.jobs_beschreibung.value.length; 
	} 
}

function newhtml(code) {
	document.formular.jobs_beschreibung.value += code;
	document.formular.jobs_beschreibung.focus();
}
function format(format) {
	if (format == 'B') ptext="fett.";
	if (format == 'I') ptext="kursiv.";
	if (format == 'U') ptext="unterstrichen.";
	if (format == 'CENTER') ptext="zentriert.";
	if (format == 'BIG') ptext="gross.";
	if (format == 'SMALL') ptext="klein.";
	text = prompt("Text eingeben für "+ptext,"");     
	if (text != "" && text != null) {           
		code = "<"+format+">"+text+"</"+format+">";
		newhtml(code);
	}  
}

function list(format) {
	text = prompt("Den erste Listenpunkt angeben.","");     
	if (text != "" && text != null) { 
		code = "\n<"+format+">\n";
		while (text != "" && text != null) {
			code += " <LI>"+text+"\n";
			text = prompt("Den nächsten Listenpunkt angeben. (Leer lassen zum übernehmen)","");
		}
		code += "</"+format+">";
		newhtml(code);
	}  
}

function link() {
	text = prompt("Eingeben der URL.","http://");
	if (text != "" && text != null) { 
		code = "<A HREF=\""+text+"\">";
		text2 = prompt("Linkbenennung eingeben.","");
		if (text2 == "" || text2 == null) text2 = text;
		code += text2+"</A>";
		newhtml(code);
	}  
}

//-->
