//-->
/* Self activated dropdown */
<!--//
function pagejump(to_url) {
        if (to_url != "") {
        window.location=to_url
        }
}
//-->
/* popup window */
<!--
function Popup(theURL,winName,features) 
 {
      okno = window.open(theURL,winName,features);
      okno.focus();
 }
//-->

/* javascript input form (bold, italic, url, img) */
<!-- Begin
function insertcode(elementID, tag, desc, desc2){
	// our textfield
	var textarea = document.getElementById(elementID);
	
	// get textarea selection
	if(!textarea.setSelectionRange){
		
		var selection = document.selection.createRange().text;
		var browserSwitch = "ie";
		
	}else{
		
		// the text before the selection
		var pretext = textarea.value.substring(0, textarea.selectionStart);
	
		// the text after the selection
		var posttext = textarea.value.substring(textarea.selectionEnd, textarea.value.length);
		
		// the selected text
		var selection = textarea.value.substring(textarea.selectionStart, textarea.selectionEnd);
		
		var browserSwitch = "ff";
	}
	
	if(tag == "url"){
		// our link
		var url = prompt("" + desc, "http://");
		
		if(url != null){ // just a check if cancel was pressed
			
			// our open tag
			var open = "[url=\"" + url + "\"]";
	
			// our close tag
			var close = "[/url]";
			
			// selection cecker
			if(selection.length <= 0){ 
				// if no selection is made, prompt for name
				var selected = open + prompt("" + desc2, "") + close;  var append = 1;
			}
			else{	
				// else use selection
				var selected = open + selection + close;  var append = 0;
			}
		}else{ var selected = selection; }
	}else if(tag == "img"){
		
		var promptUser = prompt("" + desc, "http://");
	
		// our image
		var image = "[img]" + promptUser + "[/img]";
	
		if(promptUser != null){	// just a check if cancel was pressed
				
			var selected = image;  var append = 1;
			
		}else{ var selected = selection; } 
	}else{
		// our open tag
		var open = "[" + tag + "]";
	
		// our close tag
		var close = "[/" + tag + "]";
			
		// check if there was a selection
		if(selection.length <= 0){
			var promptUser = prompt("" + desc, "");
			
			if(promptUser != null){ // just a check if cancel was pressed
				//prompt the user
				var selected = open + promptUser + close; var append = 1;
			}else{ var selected = selection; }
		}else{
			var selected = open + selection + close; var append = 0;
		}	
	}
	
	// update the text field
	if(browserSwitch == "ff") textarea.value = pretext + selected + posttext;
	if(browserSwitch == "ie"){ 
		if(append == 0) document.selection.createRange().text = selected;
		if(append == 1) textarea.value += selected;
	}
	
	// set the focus on the text field
	textarea.focus();
}
// End -->
