// Common JavaScript function for takwin-masihi.org

function GetParam(urlstr, pname) {
   var pstart = urlstr.indexOf("?");
   if (pstart < 0) return 0;
   var place = urlstr.indexOf(pname, pstart);
   var start = urlstr.indexOf("=", place) + 1;
   var end   = urlstr.indexOf(";", place);
   if (end < 0) end = urlstr.length;
   var pvalue = urlstr.substring(start, end);
   if (pvalue == "") pvalue = 0;
   return pvalue;
}

function PutButton(link, target, text, class0, class1, extra) {
   document.writeln("<TD "+extra+" CLASS="+class0);
   document.writeln(" onmouseover=\"this.className='"+class1+"'\"");
   document.writeln(" onmouseout =\"this.className='"+class0+"'\"");
   document.writeln(" onclick = \"window.open('"+link+"','"+target+"');\">");
   document.writeln(text+"</TD>");
   return;
}

function AddLang(n0, n1, n2) {
   this.name = new Array();
   this.name[0] = n0;
   this.name[1] = n1;
   this.name[2] = n2;
   return;
}

function AddWhatsNew(w0, w1, w2) {
   this.name = new Array();
   this.name[0] = w0;
   this.name[1] = w1;
   this.name[2] = w2;
   return;
}

var thepass = "joseph";
var tcode = "777";

