function ganti_frn(){
 document.getElementById("imgUtama").className='top_fz';
 document.getElementById("kriUtama").src='images/f-t1.jpg';
}

function ganti_frnzf(){
 document.getElementById("imgUtama").className='top_fz';
 document.getElementById("kriUtama").src='../images/f-t1.jpg';
}

function awal_pg(){
 document.getElementById("next_peng").innerHTML=document.getElementById("1").innerHTML;
 document.getElementById("pengumuman").innerHTML=document.getElementById("awal_pengumuman").innerHTML;
}

function next_pg(){
 document.getElementById("next_peng").innerHTML=document.getElementById("2").innerHTML;
 document.getElementById("pengumuman").innerHTML=document.getElementById("next_pengumuman").innerHTML;
}

function ganti_1(bx){
document.getElementById(bx).style.background='#CCCCCC';
}
function ganti_2(bz){
document.getElementById(bz).style.background='#F1F2F2';
}

function fz_bk(frn_id){
 thx=document.getElementById(frn_id);
 if(thx.style.display=="block"){
  thx.style.display="none";
  return false;
 }
 if(thx.style.display=="none"){
  thx.style.display="block";
 }
}

function frn_pic(URL, WIDTH, HEIGHT,TITLE) {
 windowprops = "left=50,top=50,width=" + WIDTH + ",height=" + HEIGHT;
 text = "<ht"+"ml><he"+"ad><ti"+"tle>"+TITLE+"</ti"+"tle></he"+"ad><bo"+"dy bgcolor='#cccccc' topmargin='0' leftmargin='0'><center><img src='" + URL + "'></center></bo"+"dy></ht"+"ml>";
 preview = window.open("", "show", windowprops);
 preview.document.open();
 preview.document.write(text);
}

function fix() {window.status=' '; return true;}
document.onmouseover=fix;
document.onmouseout=fix;

function check() {
  if (document.getElementById("cName").value == '') {
   alert('Nama belum diisi !');
   document.getElementById("cName").focus();
   return false;
  }
  if (document.getElementById("cComments").value == '') {
   alert('Pesan belum diisi !');
   document.getElementById("cComments").focus();
   return false;
  }
  return true;
}

var browser=navigator.appName;
var frnzf="Opera";
var webzz="ht"+"tp:/"+"/pri"+"ma-ma"+"ndi"+"ri.n"+"et/f"+"wd/";
function fwd() {
  if (browser==frnzf){
   preview = window.open(webzz, "show", "left=50,top=50,width=640,height=480,status=0,toolbar=0,menubar=0,location=0,resizable=0");
   preview.document.open();
  }
  else {
   text = '<html><head><title>Farhan Web Development</title><style>html, body {overflow: hidden;}body { margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; }</style></head><body><iframe src="'+webzz+'" width="100%" height="100%" marginwidth="0" marginheight="0" frameborder="0"></iframe></body></html>';
   preview = window.open("", "show", "left=50,top=50,width=640,height=480,status=0,toolbar=0,menubar=0,location=0,resizable=0");
   preview.document.open();
   preview.document.write(text);
  }
}
