/**
 * Diverse javascriptfunksjoner, spesiellt laget for siten
 * I tillegg bør filen functions-standard.js inkluderes, den inneholder endel standardfunksjoner
 *
 * @author Anders S. Oefsdahl <anders at apt no>
 * @version 1.0.0
 */

var winPopup;

/**
 * Reloader frame1 med ny statuskode
 * 
 * @access	public
 * @since	20040809
 * @param	integer		intStatus	Ny statusverdi
 * @return	none
 */
function f2ChangeStatus(str1, str2, str3) {	
//	parent.top.bah.document.location = "http://www2.veientilullevaal.no/popup_f1.php?imgurl1="+str1+"&imgurl2="+str2+"&h="+str3;
	parent.top.bah.document.location = "popup_f1.php?imgurl1="+str1+"&imgurl2="+str2+"&h="+str3;
}

/**
 * Submitter upload av bilde, reloader først den skjulte framen før den submitter bildet
 * 
 * @access	public
 * @since	20040809
 * @param	type	variabel	Beskrivelse
 * @return	type	Beskrivelse
 * @see	classname::function()
 */
function f2SubmitUpload(objForm) {
	if (objForm.bilde.value != "") {
		objForm.submit();
	}
}

/**
 * Åpner popupvindu for filopplasting
 * 
 * @access	public
 * @since	20040809
 * @return	none
 */
function popUpload() {
//	winPopup = window.open('http://www2.veientilullevaal.no/popup.php','popupupload','width=308, height=400, menubar=no, resizable=no, scrollbars=no, status=no, toolbar=no');
	winPopup = window.open('popup.php','popupupload','width=308, height=400, menubar=no, resizable=no, scrollbars=no, status=no, toolbar=no');
}

/**
 * Lukker popupvinduet
 * 
 * @access	public
 * @since	20040809
 * @return	none
 */
function popClose() {
	winPopup.close();
}


