function ValidateMyForm() {
MessageLength=document.REPLIER.Post.value.length;
errors="";
if (MessageLength < 10) {
errors="Please enter some text, at least 10 chars.";
}
if (errors != "") {
alert(errors);
return false;
} else {
document.REPLIER.submit.disabled = true;
return true;
}
}
function paste(name)
{
document.REPLIER.Post.value+="[b]"+name+"[/b]\n";
}
function paste2(name)
{
if (name!="") document.REPLIER.Post.value+="[quote]"+name+"[/quote]\n"
}
function paste3(name)
{
if (name!="") document.REPLIER.Post.value+=""+name+"\n"
}
function Is ()
{
    var agt=navigator.userAgent.toLowerCase();
    this.major = parseInt(navigator.appVersion);
    this.minor = parseFloat(navigator.appVersion);
    this.nav  = ((agt.indexOf('mozilla')!=-1) && (agt.indexOf('spoofer')==-1)
                && (agt.indexOf('compatible') == -1) && (agt.indexOf('opera')==-1)
                && (agt.indexOf('webtv')==-1) && (agt.indexOf('hotjava')==-1));
    this.nav2 = (this.nav && (this.major == 2));
    this.nav3 = (this.nav && (this.major == 3));
    this.nav4 = (this.nav && (this.major == 4));
    this.nav4up = (this.nav && (this.major >= 4));
    this.navonly      = (this.nav && ((agt.indexOf(";nav") != -1) ||
                          (agt.indexOf("; nav") != -1)) );
    this.nav6 = (this.nav && (this.major == 5));
    this.nav6up = (this.nav && (this.major >= 5));
    this.gecko = (agt.indexOf('gecko') != -1);
    this.ie     = ((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1));
    this.ie3    = (this.ie && (this.major < 4));
    this.ie4    = (this.ie && (this.major == 4) && (agt.indexOf("msie 4")!=-1) );
    this.ie4up  = (this.ie && (this.major >= 4));
    this.ie5    = (this.ie && (this.major == 4) && (agt.indexOf("msie 5.0")!=-1) );
    this.ie5_5  = (this.ie && (this.major == 4) && (agt.indexOf("msie 5.5") !=-1));
    this.ie5up  = (this.ie && !this.ie3 && !this.ie4);
    this.ie5_5up =(this.ie && !this.ie3 && !this.ie4 && !this.ie5);
    this.ie6    = (this.ie && (this.major == 4) && (agt.indexOf("msie 6.")!=-1) );
    this.ie6up  = (this.ie && !this.ie3 && !this.ie4 && !this.ie5 && !this.ie5_5);
    this.aol   = (agt.indexOf("aol") != -1);
    this.aol3  = (this.aol && this.ie3);
    this.aol4  = (this.aol && this.ie4);
    this.aol5  = (agt.indexOf("aol 5") != -1);
    this.aol6  = (agt.indexOf("aol 6") != -1);
    this.opera = (agt.indexOf("opera") != -1);
    this.opera2 = (agt.indexOf("opera 2") != -1 || agt.indexOf("opera/2") != -1);
    this.opera3 = (agt.indexOf("opera 3") != -1 || agt.indexOf("opera/3") != -1);
    this.opera4 = (agt.indexOf("opera 4") != -1 || agt.indexOf("opera/4") != -1);
    this.opera5 = (agt.indexOf("opera 5") != -1 || agt.indexOf("opera/5") != -1);
    this.opera5up = (this.opera && !this.opera2 && !this.opera3 && !this.opera4);
    this.webtv = (agt.indexOf("webtv") != -1); 
    this.TVNavigator = ((agt.indexOf("navio") != -1) || (agt.indexOf("navio_aoltv") != -1)); 
    this.AOLTV = this.TVNavigator;
    this.hotjava = (agt.indexOf("hotjava") != -1);
    this.hotjava3 = (this.hotjava && (this.major == 3));
    this.hotjava3up = (this.hotjava && (this.major >= 3));
}
function handleKeys(e)
{
var theKey
theKey = e.which
if (e.which==96) this.REPLIER.geo.checked = !this.REPLIER.geo.checked;
var i=document.REPLIER.Post.value.length - 1;
if (e.which==96) document.REPLIER.Post.value=document.REPLIER.Post.value.slice(0,i) + "";
if (this.REPLIER.geo.checked )
{
if (e.which==97) document.REPLIER.Post.value=document.REPLIER.Post.value.slice(0,i) + "\u10D0";
if (e.which==98) document.REPLIER.Post.value=document.REPLIER.Post.value.slice(0,i) + "\u10D1";
if (e.which==103) document.REPLIER.Post.value=document.REPLIER.Post.value.slice(0,i) + "\u10D2";
if (e.which==100) document.REPLIER.Post.value=document.REPLIER.Post.value.slice(0,i) + "\u10D3";
if (e.which==101) document.REPLIER.Post.value=document.REPLIER.Post.value.slice(0,i) + "\u10D4";
if (e.which==118) document.REPLIER.Post.value=document.REPLIER.Post.value.slice(0,i) + "\u10D5";
if (e.which==122) document.REPLIER.Post.value=document.REPLIER.Post.value.slice(0,i) + "\u10D6";
if (e.which==84) document.REPLIER.Post.value=document.REPLIER.Post.value.slice(0,i) + "\u10D7";
if (e.which==105) document.REPLIER.Post.value=document.REPLIER.Post.value.slice(0,i) + "\u10D8";
if (e.which==107) document.REPLIER.Post.value=document.REPLIER.Post.value.slice(0,i) + "\u10D9";
if (e.which==108) document.REPLIER.Post.value=document.REPLIER.Post.value.slice(0,i) + "\u10DA";
if (e.which==109) document.REPLIER.Post.value=document.REPLIER.Post.value.slice(0,i) + "\u10DB";
if (e.which==110) document.REPLIER.Post.value=document.REPLIER.Post.value.slice(0,i) + "\u10DC";
if (e.which==111) document.REPLIER.Post.value=document.REPLIER.Post.value.slice(0,i) + "\u10DD";
if (e.which==112) document.REPLIER.Post.value=document.REPLIER.Post.value.slice(0,i) + "\u10DE";
if (e.which==74) document.REPLIER.Post.value=document.REPLIER.Post.value.slice(0,i) + "\u10DF";
if (e.which==114) document.REPLIER.Post.value=document.REPLIER.Post.value.slice(0,i) + "\u10E0";
if (e.which==115) document.REPLIER.Post.value=document.REPLIER.Post.value.slice(0,i) + "\u10E1";
if (e.which==116) document.REPLIER.Post.value=document.REPLIER.Post.value.slice(0,i) + "\u10E2";
if (e.which==117) document.REPLIER.Post.value=document.REPLIER.Post.value.slice(0,i) + "\u10E3";
if (e.which==102) document.REPLIER.Post.value=document.REPLIER.Post.value.slice(0,i) + "\u10E4";
if (e.which==113) document.REPLIER.Post.value=document.REPLIER.Post.value.slice(0,i) + "\u10E5";
if (e.which==82) document.REPLIER.Post.value=document.REPLIER.Post.value.slice(0,i) + "\u10E6";
if (e.which==121) document.REPLIER.Post.value=document.REPLIER.Post.value.slice(0,i) + "\u10E7";
if (e.which==83) document.REPLIER.Post.value=document.REPLIER.Post.value.slice(0,i) + "\u10E8";
if (e.which==67) document.REPLIER.Post.value=document.REPLIER.Post.value.slice(0,i) + "\u10E9";
if (e.which==99) document.REPLIER.Post.value=document.REPLIER.Post.value.slice(0,i) + "\u10EA";
if (e.which==90) document.REPLIER.Post.value=document.REPLIER.Post.value.slice(0,i) + "\u10EB";
if (e.which==119) document.REPLIER.Post.value=document.REPLIER.Post.value.slice(0,i) + "\u10EC";
if (e.which==87) document.REPLIER.Post.value=document.REPLIER.Post.value.slice(0,i) + "\u10ED";
if (e.which==120) document.REPLIER.Post.value=document.REPLIER.Post.value.slice(0,i) + "\u10EE";
if (e.which==106) document.REPLIER.Post.value=document.REPLIER.Post.value.slice(0,i) + "\u10EF";
if (e.which==104) document.REPLIER.Post.value=document.REPLIER.Post.value.slice(0,i) + "\u10F0";
status=theKey;
}
return true;
}
function changeVal()
{
var is=new Is();
if (is.ie4up || is.opera)  {
if (event.keyCode==96) this.REPLIER.geo.checked = this.REPLIER.geo.checked ? false : true;
if (event.keyCode==96) event.keyCode=''; 
} else if (is.nav6up) {
	// alert("We doesn't currently support your browser");
	document.onkeypress = handleKeys;
}
if (document.REPLIER.geo.checked)
{
if (is.ie4up || is.opera)  {
var theKey
theKey=event.keyCode
if (event.keyCode==97) event.keyCode=4304; 
if (event.keyCode==98) event.keyCode=4305; 
if (event.keyCode==103) event.keyCode=4306;
if (event.keyCode==100) event.keyCode=4307;
if (event.keyCode==101) event.keyCode=4308;
if (event.keyCode==118) event.keyCode=4309;
if (event.keyCode==122) event.keyCode=4310;
if (event.keyCode==84) event.keyCode=4311;
if (event.keyCode==105) event.keyCode=4312;
if (event.keyCode==107) event.keyCode=4313;
if (event.keyCode==108) event.keyCode=4314;
if (event.keyCode==109) event.keyCode=4315;
if (event.keyCode==110) event.keyCode=4316;
if (event.keyCode==111) event.keyCode=4317;
if (event.keyCode==112) event.keyCode=4318;
if (event.keyCode==74) event.keyCode=4319;
if (event.keyCode==114) event.keyCode=4320;
if (event.keyCode==115) event.keyCode=4321;
if (event.keyCode==116) event.keyCode=4322;
if (event.keyCode==117) event.keyCode=4323;
if (event.keyCode==102) event.keyCode=4324;
if (event.keyCode==113) event.keyCode=4325;
if (event.keyCode==82) event.keyCode=4326;
if (event.keyCode==121) event.keyCode=4327;
if (event.keyCode==83) event.keyCode=4328;
if (event.keyCode==67) event.keyCode=4329;
if (event.keyCode==99) event.keyCode=4330;
if (event.keyCode==90) event.keyCode=4331;
if (event.keyCode==119) event.keyCode=4332;
if (event.keyCode==87) event.keyCode=4333;
if (event.keyCode==120) event.keyCode=4334;
if (event.keyCode==106) event.keyCode=4335;
if (event.keyCode==104) event.keyCode=4336;
status = theKey;
}
else if (is.nav6up ) { 
//       document.captureEvents(Event.KEYPRESS) ;
        document.onkeypress = handleKeys;
} else {
    alert("We doesn't currently support your browser");
    document.REPLIER.geo.checked=false;
  }
 }
}

function setup_REPLIER(enablefocus){
if ((!enablefocus)&&(navigator.appVersion.indexOf("MSIE")!= -1)){ 
	var i=1;
	while (document.all("tbl"+i) != null) {document.all("tbl"+i).style.tableLayout="fixed"; i++}

	var testform_cookie = getCookie('setup2')
	if (testform_cookie!=null){
		form_cookie=testform_cookie.split("|");
		if ((form_cookie[3] != null)&&(form_cookie[3] >=20)&&(form_cookie[3]<=250)) {document.REPLIER.Post.cols=form_cookie[3]} else {document.REPLIER.Post.style.width="100%"};
		if (form_cookie[4] != null) {document.REPLIER.Post.rows=form_cookie[4]}
		if (form_cookie[5] != null) {document.REPLIER.Post.style.fontSize=form_cookie[5]}
		if (form_cookie[6] != null) {document.REPLIER.Post.accessKey=form_cookie[6]}
	} else {document.REPLIER.Post.style.width="100%"}
}
}
function getCookie(name) {
var prefix = name + "="
var StartIndex = document.cookie.indexOf(prefix)
if (StartIndex == -1)
return null
var EndIndex = document.cookie.indexOf(";", StartIndex + prefix.length)
if (EndIndex == -1)
EndIndex = document.cookie.length
return unescape(document.cookie.substring(StartIndex + prefix.length, EndIndex))
}

// added functions
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}