function LSTD_IFrameGoto(id, url, enableBack){
/* Causes the IFRAME section <id> to load the page denoted by <url>.
 * Pass <enableBack> as TRUE if you want to allow the back button
 * on key browsers to go back to the previous IFRAME url instead of
 * effecting the whole page.
 */
	var theFrame;
	var theFrameDoc;
	if(document.frames){
        // Mac IE5 (only):
		// Must access the <iframe> via the document.frames array.
        theFrame = document.frames[id];
    }
	else{
		theFrame = document.getElementById(id);
	}
	if(theFrame.contentDocument){
		// NS6
		theFrameDoc = theFrame.contentDocument; 
	}
	else if(theFrame.contentWindow){
		// IE 5.5 and 6
		theFrameDoc = theFrame.contentWindow.document;
	}
	else if(theFrame.document){
    	// IE5
		theFrameDoc = theFrame.document;
	}
	theFrameDoc.location.replace(url);
}

function LSTD_FormToParam(id){
/* Creates a string containing the "get" url that would be
 * generated by submitting the form denoted by <id>, enabling
 * easy submission of "get" forms via. JavaScript.
 */
	theForm = document.forms[id];
	var str = '';
    for(n=0;n<theForm.elements.length;n++){
        if(theForm.elements[n].name!=''){
			str+=(str=='')?'?':'&';
			str+=theForm.elements[n].name+'='+escape(theForm.elements[n].value);
		}
		else if(theForm.elements[n].id != ''){
			str+=(str == '')?'?':'&';
			str+=theForm.elements[n].id+'='+escape(theForm.elements[n].value);
		}
    }
	return str;
}
