function CekField(Field)
	{
		return true;
	}


function popUp(URL) 
	{
		Ran = parseInt(Math.random()*1000);
		URL = URL+"&Ran="+Ran;
		MyObjek = new Object();
		window.showModalDialog(URL, MyObjek , "dialogWidth:100;dialogHeight:100;resizeable:no;status:no;scrollbars:yes;dialogTop:1;dialogLeft:1;help:no;title:Print;print:yes;toolbar:yes");
		if (MyObjek.jadi=='1')
		{
			popUp(MyObjek.url)
		}
	}
function popUp2(page,panjang,lebar,sh)
{
	if (sh=='')
	{
		sh = 'no'
	}
	sWidth = screen.width;
	sHeight = screen.height;
	stop = (sHeight-lebar)/2;
	sleft = (sWidth-panjang)/2;
	window.open(page,'','width='+panjang+',height='+lebar+',top='+stop+',left='+sleft+',scrollbars='+sh+',resizable=no');
}
function preloadImages()
{
	if(document.images)
	{
		if(!document.imageArray) document.imageArray = new Array();
		var i,j = document.imageArray.length, args = preloadImages.arguments;

		for(i=0; i<args.length; i++)
		{
			if (args[i].indexOf('#')!=0)
			{
				document.imageArray[j] = new Image;
				document.imageArray[j++].src = args[i];
			}
		}
	}
}
tinyMCE.init({
		width : "100%", 
		theme : "advanced",
		theme_advanced_buttons1 : "bold, italic, underline, strikethrough, bullist, numlist, outdent, indent, justifyleft, justifycenter, justifyright, link, unlink, image, justifyfull, forecolor, charmap, code, emotions, table, flash",
		theme_advanced_buttons2 : "",
		theme_advanced_buttons3 : "",
		language : "en",
		mode : "specific_textareas",
		remove_script_host : false,
		relative_urls : false,
		document_base_url : "docs",
		invalid_elements : "script,object,applet,iframe",
		theme_advanced_toolbar_location : "top",
		theme_advanced_toolbar_align : "left",
		theme_advanced_path_location : false,
		theme_advanced_resizing : false,
		theme_advanced_source_editor_height : "100%",
		theme_advanced_source_editor_width : "550",
		directionality: "ltr",
		convert_urls : false,
		relative_urls : false,
		remove_script_host : false,
		force_p_newlines : true,
		force_br_newlines : false,
		convert_newlines_to_brs : false,
		remove_linebreaks : false,
		fix_list_elements : true,
		gecko_spellcheck : true,
		entities : "38,amp,60,lt,62,gt",
		button_tile_map : true,
		plugins : "emotions, table, flash, advimage",
		debug : false
		});
function popUpEvaluasi(page)
{
	sWidth = screen.width;
	sHeight = screen.height;
	window.open(page,'','width='+sWidth+',height='+sHeight+',top=0,left=0,scrollbars=1,resizable=0,titlebar=0,fullscreen=1');
}