<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
}

function ismaxlength(obj){
var mlength=obj.getAttribute? parseInt(obj.getAttribute("maxlength")) : ""
if (obj.getAttribute && obj.value.length>mlength)
obj.value=obj.value.substring(0,mlength)
}

function flip(source) {
document.display_pic.src = source;
}

function popup(url, width, height) {
        var Win = window.open(url, "Stream", 'width=' + width + ', height=' + height + ', scrollbars=0, resizable=0, menubar=0, status=1');
}

function rteSafe($strText) {
//returns safe code for preloading in the RTE
$tmpString = $strText;
	
//convert all types of single quotes
$tmpString = str_replace(chr(145), chr(39), $tmpString);
$tmpString = str_replace(chr(146), chr(39), $tmpString);
$tmpString = str_replace("'", "&#39;", $tmpString);
	
//convert all types of double quotes
$tmpString = str_replace(chr(147), chr(34), $tmpString);
$tmpString = str_replace(chr(148), chr(34), $tmpString);
//	$tmpString = str_replace("\"", "\"", $tmpString);
	
//replace carriage returns & line feeds
$tmpString = str_replace(chr(10), " ", $tmpString);
$tmpString = str_replace(chr(13), " ", $tmpString);
	
return $tmpString;
}

function conditions(url) {
var Win = window.open(url,"conditions",'width=500, height=450 , scrollbars=1, resizable=1, menubar=0, status=1' );
}
//-->