function autofitIframe(id){
if (!window.opera && !document.mimeType && document.all && document.getElementById){
parent.document.getElementById(id).style.height=this.document.body.offsetHeight+"px";
}

else if(document.getElementById) {
parent.document.getElementById(id).style.height=this.document.body.scrollHeight+"px"
}

} 





function autoIframe(frameId)
{
	try
	{
		frame = document.getElementById(frameId);
		innerDoc = (frame.contentDocument) ? frame.contentDocument : frame.contentWindow.document;
		objToResize = (frame.style) ? frame.style : frame;
	//	objToResize.height = innerDoc.body.scrollHeight + 200;
		objToResize.height = innerDoc.body.scrollHeight + 30;
	}
	catch(err)
	{
		window.status = err.message;
	}
}


function autoIframeIncrease(frameId)
{
	try
	{
		frame = document.getElementById(frameId);
		innerDoc = (frame.contentDocument) ? frame.contentDocument : frame.contentWindow.document;
		objToResize = (frame.style) ? frame.style : frame;
	//	objToResize.height = innerDoc.body.scrollHeight - 200;
		objToResize.height = innerDoc.body.scrollHeight - 30;
	}
	catch(err)
	{
		window.status = err.message;
	}
}


function showHide(theid){
   
	
	  if (document.getElementById) {
    var switch_id = document.getElementById(theid);

        if(menu_status[theid] != 'show') {
           switch_id.className = 'show';
           menu_status[theid] = 'show';
	if (window.parent && window.parent.autoIframe) {window.parent.autoIframe('MainFrame');}

        }else{
           switch_id.className = 'hide';
           menu_status[theid] = 'hide';
	//if (window.parent && window.parent.autoIframeIncrease) {window.parent.autoIframeIncrease('MainFrame');}

        }
    }



//autoIframe("MainFrame");

}


function logonkontrol(theForm)
{



  if (theForm.sicilno.value == "")
  {
    alert("Lütfen Sicil Numaranızı Giriniz..");
    theForm.sicilno.focus();
    return (false);
  }  

  if (theForm.sifre.value == "")
  {
    alert("Lütfen Şifrenizi giriniz");
    theForm.sifre.focus();
    return (false);
  }  
	

  return (true);


}










