isNS4 = (document.layers) ? true : false;
isIE4 = (document.all && !document.getElementById) ? true : false;
isIE5 = (document.all && document.getElementById) ? true : false;
isNS6 = (!document.all && document.getElementById) ? true : false;

function get_ww() 
{var frameWidth=800; 
if (self.innerWidth) 
    frameWidth = self.innerWidth; 
else if (document.documentElement && document.documentElement.clientWidth) 
    frameWidth = document.documentElement.clientWidth; 
else if (document.body) 
    frameWidth = document.body.clientWidth; 
return frameWidth; 
} 

function get_wh() 
{var frameHeight=640; 
if (self.innerHeight) 
    frameHeight = self.innerHeight; 
else if (document.documentElement && document.documentElement.clientHeight) 
    frameHeight = document.documentElement.clientHeight; 
else if (document.body) 
    frameHeight = document.body.clientHeight; 
   
return frameHeight; 
} 

function getScrollTop()
{
	standardbody=(document.compatMode=="CSS1Compat")? document.documentElement : document.body //create reference to common "body" across doctypes
	return (isIE5||isIE4)? standardbody.scrollTop : window.pageYOffset
}

function showAudioBase(){
if (!dhxWins) initDhxWins();
	if(!dhxWins.window("notesWin5"))
    {	
		audio = dhxWins.createWindow("notesWin5", get_ww()/2 - 200, get_wh()/2 - 105 + getScrollTop(), 400, 220);
  		audio.setText('Audio Base');
  		audio.attachURL('audiobase.php');
  		audio.keepInViewport(true);
  		audio.stick();
    }	
}

function showVideoBase(){
if (!dhxWins) initDhxWins();
	if(!dhxWins.window("notesWinVB"))
    {	
		video = dhxWins.createWindow("notesWinVB", get_ww()/2 - 220, get_wh()/2 - 165 + getScrollTop(), 430, 220);
  		video.setText('Video Base');
  		video.attachURL('videobase.php');
  		video.keepInViewport(true);
  		video.stick();
    }
}

function showAudioRecord()
{
if (!dhxWins) initDhxWins();
	if(!dhxWins.window("notesWin23"))
    {	
		audio = dhxWins.createWindow("notesWin5", get_ww()/2 - 200, get_wh()/2 - 105 + getScrollTop(), 260, 220);
  		audio.setText('Audio Recorder');
  		audio.attachURL('/forum/audio.php');
  		audio.keepInViewport(true);
  		audio.stick();
    }		
}

function showVideoRecord()
{
if (!dhxWins) initDhxWins();
	if(!dhxWins.window("notesWin43"))
    {	
		audio = dhxWins.createWindow("notesWin43", get_ww()/2 - 200, get_wh()/2 - 105 + getScrollTop(), 700, 600);
  		audio.setText('Video Recorder');
  		audio.attachURL('/forum/video.php');
  		audio.keepInViewport(true);
  		audio.stick();
    }		
}


function add_html(h)
{
	replaceText(h, document.forms.postmodify.message); return false;
}

function SWF_ShowMyGrammar()
{
	
}