// 
//  functions.js
//  Spannex
//  
//  Created by Patrik Wilhelmsson on 2008-05-15.
//  Copyright 2008 Media Tech Design. All rights reserved.
// 

function toggleFields(val){
	if (val == 'true') {
		$(".te").attr("disabled","");
	}else{
		$(".te").attr("disabled","disabled");
	};
}

function popup(url, sw, sh) {
	window.open(url,"myWin","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width="+sw+",height="+sh+",top=200,left=200");
	return false;
}

