var d=document;
d.write('<style type="text/css"> html { overflow-y: scroll; } </style>');

function mailx(name,domain,subj,cls)
{
 addr=name+'@'+domain;
 addrt=(subj)?addr+'?subject='+subj:addr;
 cls=(cls=='')?'':'class="'+cls+'" ';
 d.write('<a '+cls+'href="mailto:'+addrt+'">'+addr+'</a>');
}

function writeflash(p,w,h)
{
 if(typeof(h)=='undefined') h=Math.round(w*355/425);
 d.writeln('<object width="'+w+'" height="'+h+'">');
 d.writeln(' <param name="movie" value="http://www.youtube.com/v/'+p+'&amp;hl=en"></param>');
 d.writeln(' <param name="wmode" value="transparent"></param>');
 d.writeln(' <embed src="http://www.youtube.com/v/'+p+'&hl=en" type="application/x-shockwave-flash" wmode="transparent" width="'+w+'" height="'+h+'"></embed>');
 d.writeln('</object>');
}

function pa(x)
{
 var r;
 if(typeof(x)=='undefined') x=false;
 if(x) r=confirm(x);
 else r=true;
 if(r) d.getElementById('pa').style.display='block';
 return r;
}

// tiny_mce has been edited so that the save even can be captured by this function
function custom_submit(x)
{
 d.getElementById('pa').style.display='block';
 x.submit();
}

