2014年1月31日 星期五

solistmc.php recordlock heatbeat 20150320

<?
require_once('../Connections/invoice0connection.php');


/* begin for grid retrieval 20110315*/
$sql = "SeLECT sob.partno partno,sob.qty qty,sob.uom uom,sob.cur cur,sob.so so,sob.datetimer datetimer from sob  order by datetimer;";
$result=mysql_query($sql,$Invoice0connect) ;
if(mysql_num_rows($result) > 0 ){
$totalRows_Recordset1 = mysql_num_rows($result);
$datetimer=array();
$partno=array();
$qty=array();
$uom=array();
$cur=array();
$so=array();
$datetimer=array();
for ($i=0;$i<$totalRows_Recordset1;$i++)
{$row = mysql_fetch_array($result);
$cursor_fields = array(partno,qty,uom,cur,so,datetimer );
$cursor_tables = array(SOB,SOB,SOB,SOB,SOB,SOB );
$_thisfield = array(SOB_partno,SOB_qty,SOB_uom,SOB_cur,SOB_so,SOB_datetimer );
$i2=0;
foreach ($cursor_fields as $field){
$txt2 = sprintf("<%s>%s</%s>\n",$_thisfield[$i2],$row[$field],$_thisfield[$i2]);
$txt3 = sprintf("<%s><empty>%s</empty></%s>\n",$_thisfield[$i2],$row[$field],$_thisfield[$i2]);
$i2++;
}
$_datetimer=$row[datetimer]; /* for future use datetimer */
array_push($datetimer, $row[datetimer]) ;
array_push($partno, $row[partno] );
array_push($qty, $row[qty] );
array_push($uom, $row[uom] );
array_push($cur, $row[cur] );
array_push($so, $row[so] );
} /* end of foreach ($cursor_fields as $field) */
}
else {echo "<reccount_0>0</reccount_0>\n";}
/* end for grid retrieval */




 ?>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><script type="text/javascript" src="calendar.js"></script>

<head>



<script src="../html/calendar.js" type="text/javascript" ></script>
<script src="../html/Event.js" type="text/javascript"></script>
<script src="../html/SortedTable.js" type="text/javascript"></script>
<script src="../html/jquery.js" type="text/javascript"></script>
<!-- script src="../html/jquery.ui.draggable.js" type="text/javascript"></script -->
<script src="../html/ui.base.min.js" type="text/javascript"></script>
<script src="../html/ui.draggable.min.js" type="text/javascript"></script>
<script src="../html/jquery.min.js"></script>
<script src="../html/jquery.alerts.js" type="text/javascript"></script>
<script src="../html/jquery.bgiframe.js" type="text/javascript"></script>
<script src="../html/jquery.dimensions.js" type="text/javascript"></script>
<script src="../html/jquery.tooltip.js" type="text/javascript"></script>
<script src="../html/chili-1.7.pack.js" type="text/javascript" ></script>
<script type="text/javascript" language="javascript" src="../html/ModalDialog.js"></script>
<script type="text/javascript" language="javascript" src="../html/fade.js"></script>
<!-- <script type="text/javascript" language="javascript" src="../html/modal-window.js"></script> -->
<script type="text/javascript" language="javascript" src="../html/jquery.cookie.js"></script>
<script type="text/javascript" language="javascript" src="../html/thickbox-compressed.js"></script>
<script type="text/javascript" language="javascript" src="../html/jquery.ajaxQueue.js"></script>
<script type="text/javascript" language="javascript" src="../html/jquery.bgiframe.min.js"></script>
<script type="text/javascript" language="javascript" src="../html/jquery.autocomplete.js"></script>
<script src="../html/jquery.maskedinput-1.2.2.js" type="text/javascript" ></script>

<script type="text/javascript">onload = function() {var myTable = new SortedTable();}</script>
<script type="text/javascript">
var nextfield ;
var prevfield ;
var upperfield ;
var lowerfield ;
var thisRowFirstField ;
var _current_row ;
var _current_id="";
var _current_table_id="";
var _last_add_id="";
var _rlock="" ;
var intervalID ;
var _rowno;
var _cellno;
var _session_id;
var _return_value=" ";
var _return_values=new Array();
var nVer = navigator.appVersion;
var nAgt = navigator.userAgent;
var browserName  = navigator.appName;
var fullVersion  = ''+parseFloat(navigator.appVersion);
var majorVersion = parseInt(navigator.appVersion,10);
var nameOffset,verOffset,ix;

/* In MSIE, the true version is after "MSIE" in userAgent*/
if ((verOffset=nAgt.indexOf("MSIE"))!=-1) {
 browserName = "Microsoft Internet Explorer";
 fullVersion = nAgt.substring(verOffset+5);
}
/* In Opera, the true version is after "Opera" */
else if ((verOffset=nAgt.indexOf("Opera"))!=-1) {
 browserName = "Opera";
 fullVersion = nAgt.substring(verOffset+6);
}
/*  In Chrome, the true version is after "Chrome"  */
else if ((verOffset=nAgt.indexOf("Chrome"))!=-1) {
 browserName = "Chrome";
 fullVersion = nAgt.substring(verOffset+7);
}
/*  In Safari, the true version is after "Safari"  */
else if ((verOffset=nAgt.indexOf("Safari"))!=-1) {
 browserName = "Safari";
 fullVersion = nAgt.substring(verOffset+7);
}
/*  In Firefox, the true version is after "Firefox"  */
else if ((verOffset=nAgt.indexOf("Firefox"))!=-1) {
 browserName = "Firefox";
 fullVersion = nAgt.substring(verOffset+8);
}
/*  In most other browsers, "name/version" is at the end of userAgent  */
else if ( (nameOffset=nAgt.lastIndexOf(' ')+1) < (verOffset=nAgt.lastIndexOf('/')) )
{
 browserName = nAgt.substring(nameOffset,verOffset);
 fullVersion = nAgt.substring(verOffset+1);
 if (browserName.toLowerCase()==browserName.toUpperCase()) {
  browserName = navigator.appName;
 }
}
/*  trim the fullVersion string at semicolon/space if present */
if ((ix=fullVersion.indexOf(";"))!=-1) fullVersion=fullVersion.substring(0,ix);
if ((ix=fullVersion.indexOf(" "))!=-1) fullVersion=fullVersion.substring(0,ix);

majorVersion = parseInt(''+fullVersion,10);
if (isNaN(majorVersion)) {
 fullVersion  = ''+parseFloat(navigator.appVersion);
 majorVersion = parseInt(navigator.appVersion,10);
}

/*document.write('Browser name  = '+browserName+'<br>');
document.write('Full version  = '+fullVersion+'<br>');
document.write('Major version = '+majorVersion+'<br>');
document.write('navigator.appName = '+navigator.appName+'<br>');
document.write('navigator.userAgent = '+navigator.userAgent+'<br>');*/



/*onload = function() {
var myTable = new SortedTable();
}*/
var sourceTable, destTable;



$(function() {
sourceTable = new SortedTable('s');
destTable = new SortedTable('d');
mySorted = new SortedTable();
mySorted.colorize = function() {
for (var i=0;i<this.elements.length;i++) {
if (i%2){
this.changeClass(this.elements[i],'even','odd');
} else {
this.changeClass(this.elements[i],'odd','even');
}
}
}
mySorted.onsort = mySorted.colorize;
mySorted.onmove = mySorted.colorize;
/*OtheROnloaD2*/
mySorted.colorize();
secondTable = SortedTable.getSortedTable(document.getElementById('id'));
if (secondTable) {secondTable.allowDeselect = false;}/*20110120*/
})




function moveRows(s,d) {
var a = new Array();
for (var o in s.selectedElements) {
a.push(s.selectedElements[o]);
}
for (var o in a) {
var elm = a[o];
var tds = elm.getElementsByTagName('td');
for (var i in tds) {
if (tds[i].headers) tds[i].headers = d.table.id+''+tds[i].headers.substr(d.table.id.length);
}
d.body.appendChild(a[o]);
d.deselect(a[o]);
d.init(d.table);
d.sort();
s.deselect(a[o]);
s.init(s.table);
}
}function _checked_data(_field_id){if(document.getElementById('_'+_field_id).checked){document.getElementById('_'+_field_id).checked=false}else {document.getElementById('_'+_field_id).checked=true}checked_data();}

function _round(_v,_d){var v=_v;r=parseFloat(v).toFixed(_d);return r;}
function checked_data(){
var tbl = document.getElementById("51647904");
var lastRow = tbl.rows.length - 1;
_return_value="";
var iix;
m_delimited = false ;
for (iix=0; iix<lastRow; iix++) {
if (document.getElementById("_choice_"+iix).checked){
if (m_delimited){_return_value=_return_value+'||'}
m_delimited=true ;
_return_value=_return_value+"<partno>"+document.getElementById("partno"+iix).title+"</partno>";
_return_value=_return_value+"<qty>"+document.getElementById("qty"+iix).title+"</qty>";
_return_value=_return_value+"<uom>"+document.getElementById("uom"+iix).title+"</uom>";
_return_value=_return_value+"<cur>"+document.getElementById("cur"+iix).title+"</cur>";
_return_value=_return_value+"<so>"+document.getElementById("so"+iix).title+"</so>";
_return_value=_return_value+"<datetimer>"+document.getElementById("datetimer"+iix).title+"</datetimer>";
} /*if*/
} /* for*/
 /* alert(_return_value);*/
  $.cookie("example",_return_value );
 /* alert( $.cookie("example")); */
}


var openMyModal = function(source,afterChoice2)
{
modalWindow.windowId = "myModal";
modalWindow.AfterChoice=afterChoice2;
modalWindow.width = 480;
modalWindow.height = 405;
modalWindow.content = "<iframe id='_1123' style='border:2px inset purple' width='480' height='405' frameborder='0' scrolling='no'  allowtransparency='true' src='" + source + "'>&lt/iframe><INPUT type='submit' value='OK'  onClick=' modalWindow.close();  return false'>";
modalWindow.open();
var cssObj1123 = {      'background-color' : '#ddd',      'color' : 'rgb(0,40,244)' , 'border-radius':'6px' ,'-moz-border-radius':'6px' , '-webkit-border-radius':'6px'   };
 $('#_1123').css(cssObj1123);

};

var modalWindow = {
parent:"body",
windowId:null,
content:null,
width:null,
height:null,
AfterChoice:null,
close:function()
{
$(".modal-window").remove();
$(".modal-overlay").remove();
},
open:function()
{
var modal = "";
modal += "<div class=\"modal-overlay\"></div>";
modal += "<div id=\"" + this.windowId + "\" class=\"modal-window\" style=\"width:" + this.width + "px; height:" + this.height + "px; margin-top:-" + (this.height / 2) + "px; margin-left:-" + (this.width / 2) + "px;\">";
modal += this.content;
modal += "</div>";
$(this.parent).append(modal);
$(".modal-window").append("<a></a>");
$(".modal-window").append("<a class=\"close-window\"></a>");
$(".close-window").click(function(){modalWindow.close(); eval(modalWindow.AfterChoice);  });  /* After Get Data  After getdata aftergetdata*/
$(".modal-overlay").click(function(){modalWindow.close();});
}
};

$(function() {
$('followme *').tooltip({track:true,delay:0,showURL:false,showBody:" - ",extraClass:"pretty",fixPNG:true,left: -120});
$("#FootTip *").tooltip({bodyHandler: function() {return $($(this).attr("href")).html();},showURL: false});
$('#right a').tooltip({ track: true,delay: 0,showURL: false,extraClass: "right"});
$('#right2 a').tooltip({ showURL: false, positionLeft: true });
$('#form1 *').tooltip({ track: true,delay: 300,showURL: false,showBody: " - ",fade: 250});
$("#MultLine, #fancy2").tooltip({track: true,delay: 0, showURL: false, opacity: 1, fixPNG: true,showBody: " - ",extraClass: "pretty fancy", top: -15, left: 5});
$('#pretty').tooltip({track: true, delay: 0,showURL: false,showBody: " - ",extraClass: "pretty",fixPNG: true, opacity: 0.95, left: -120});
});  /* $function() */

upperfield = " ";
lowerfield = " ";
nextfield = "box1"; /* name of first box on page */
netscape = "";
k = 0;
ver = navigator.appVersion; len = ver.length;
for(iln = 0; iln < len; iln++) if (ver.charAt(iln) == "(") break;
netscape = (ver.charAt(iln+1).toUpperCase() != "C");
function keyDown(DnEvents) { /* handles keypress */
/* determines whether Netscape or Internet Explorer */
/* alert('hello'); */
k = (netscape) ? DnEvents.which : window.event.keyCode;
if (k==123){$( "#save" ).click();} /*F12 20110125*/
if (k==27){$( "#exit" ).click();} /*Exit 20110125*/
if (k == 13) { /* enter key pressed*/
if (_last_add_id == _current_id) {} /*20110125*/
if (nextfield == '** done **' || nextfield == 'nonextfield') return true; /* submit, we finished all fields */
else { /* we're not ** done ** yet, send focus to next box
document.getElementById(nextfield).focus();
alert(nextfield); */
if (eval('document.form1.' + nextfield)){
eval('document.form1.' + nextfield + '.focus()');}
return false;
      }
   }
 if (k == 40) { /* down arrow 38 for uparrow 27 for exit */
if (lowerfield == '** done **') return true; /* submit, we finished all fields */
else {
if (eval('document.form1.' + lowerfield)){
eval('document.form1.' + lowerfield + '.focus()');}
return false;
      }
}
 
if (k == 38) { /* down arrow 38 for uparrow 27 for exit */
if (lowerfield == '** done **') return true; /* submit, we finished all fields */
else {
if (eval('document.form1.' + upperfield)){
eval('document.form1.' + upperfield + '.focus()');}
return false;
      }
}

if (k == 37) { /* left arrow 37 for uparrow 27 for exit */
if (prevfield == '** done **') return true; /* submit, we finished all fields */
else {
if (eval('document.form1.' + prevfield)){
eval('document.form1.' + prevfield + '.focus()');}
return false;
      }
}

 
}  /* end of function */

document.onkeydown = keyDown; /* work together to analyze keystrokes */
if (netscape) document.captureEvents(Event.KEYDOWN|Event.KEYUP);
function ValidateNumeric(evt) {
  var theEvent = evt || window.event;
  var mv_key = theEvent.keyCode || theEvent.which;
  key = String.fromCharCode(mv_key);
  var regex = /[0-9]|\./;
  if( !regex.test(key) ) {
    theEvent.returnValue = false;
if (theEvent.preventDefault)
    theEvent.preventDefault();
  else if (theEvent.cancelBubble)   /* for ie */
    theEvent.cancelBubble = true;
/*    theEvent.preventDefault(); */
  }
}

var browserlevel = -1;
function getlevel() {
if (browserlevel != -1) return browserlevel;
    if(navigator.appName.indexOf("Netscape") != -1 || navigator.appName.indexOf("Mozilla") != -1){
        if (navigator.userAgent.indexOf("Mozilla/2.0") != -1)
            browserlevel = 2;
        else if (navigator.userAgent.indexOf("Mozilla/3.0") != -1)
                browserlevel = 3;
        else if (navigator.userAgent.indexOf("Mozilla/4.") != -1)
                    browserlevel = 4;
                else if (navigator.userAgent.indexOf("Mozilla/5.") != -1)
                        browserlevel = 5;
                    else
                        browserlevel = 1;
        }  else {
                if (navigator.appName.indexOf("Internet Explorer") != -1){
                     if (navigator.userAgent.indexOf("Mozilla/4.") != -1)
                      browserlevel = 4;
                         else
                            browserlevel = 1;
                     } else
                      browserlevel = 1;
               }
return browserlevel;
};

function stopRKey(evt) {
   var evt = (evt) ? evt : ((event) ? event : null);
   var node = (evt.target) ? evt.target : ((evt.srcElement) ? evt.srcElement : null);
   if ((evt.keyCode == 13) && (node.type=="text")) {return false;}
}function setSelectionRange_(input, selectionStart, selectionEnd)

{
if (input.setSelectionRange) {
alert('irefox');
input.focus();
input.setSelectionRange(selectionStart, selectionEnd);
setSelectionRange(input, 0, 0);

}
else if (input.createTextRange) {
alert('ie');
var range = input.createTextRange();
range.collapse(true);
range.moveEnd('character', selectionEnd);
range.moveStart('character', selectionStart);
range.select();
}
}

function check_date(field){
/* e.g. <INPUT type="text" name=testdat size='10' maxlength="10" onblur="check_date(this)"> */
var checkstr = "0123456789";
var DateField = field;
var Datevalue = "";
var DateTemp = "";
var seperator = "-";
var dateFormat='YYYYMMDD';
var day;
var month;
var year;
var leap = 0;
var err = 0;
var i;
   err = 0;
   DateValue = DateField.value;
   /* Delete all chars except 0..9 */
   for (i = 0; i < DateValue.length; i++) {
 if (checkstr.indexOf(DateValue.substr(i,1)) >= 0) {
    DateTemp = DateTemp + DateValue.substr(i,1);
 }
   }
   DateValue = DateTemp;
   /* Always change date to 8 digits - string*/
   /* if year is entered as 2-digit / always assume 20xx */
   if (DateValue.length == 6) {
      DateValue = DateValue.substr(0,4) + '20' + DateValue.substr(4,2); }
   if (DateValue.length != 8) {
      err = 19;}
   /* alert(dateFormat+DateValue); */
   /* year is wrong if year = 0000 */
if(dateFormat='YYYYMMDD') {year=DateValue.substr(0,4);} else {year = DateValue.substr(4,4);}
   /* alert(year); */
   if (year == 0) {
      err = 20;
   }
   /* Validation of month*/
   if(dateFormat='YYYYMMDD'){month = DateValue.substr(4,2);} else {month = DateValue.substr(2,2);}
   if ((month < 1) || (month > 12)) {
      err = 21;
   }
      /* alert(month); */
   /* Validation of day*/
   if(dateFormat='YYYYMMDD'){day = DateValue.substr(6,2);} else {day = DateValue.substr(0,2);}
/*   if(dateFormat='YYYYMMDD'){day = 'testing';}{ day = DateValue.substr(0,2);} */
   if (day < 1) {
     err = 22;
   }
      /* alert(day); */
   /* Validation leap-year / february / day */
   if ((year % 4 == 0) || (year % 100 == 0) || (year % 400 == 0)) {
      leap = 1;
   }
   if ((month == 2) && (leap == 1) && (day > 29)) {
      err = 23;
   }
   if ((month == 2) && (leap != 1) && (day > 28)) {
      err = 24;
   }
   /* Validation of other months */
   if ((day > 31) && ((month == "01") || (month == "03") || (month == "05") || (month == "07") || (month == "08") || (month == "10") || (month == "12"))) {
      err = 25;
   }
   if ((day > 30) && ((month == "04") || (month == "06") || (month == "09") || (month == "11"))) {
      err = 26;
   }
   /* if 00 ist entered, no error, deleting the entry */
   if ((day == 0) && (month == 0) && (year == 00)) {
      err = 0; day = ""; month = ""; year = ""; seperator = "";
   }
   /* if no error, write the completed date to Input-Field (e.g. 13.12.2001) */
   if (err == 0) {
  if(dateFormat='YYYYMMDD'){DateField.value = year  + seperator + month + seperator + day;} else
  {DateField.value = day  + seperator + month + seperator + year;}
/*   alert(DateField.value); */
   }
   /* Error-message if err != 0 */
   else {
      alert("Date is incorrect!");
      DateField.select();
 DateField.focus();
   }
 
}function recordlock(zzz_datetimer, session_id){
now = new Date();
v_gettime = now.getTime();
if (_rlock=='Locked'){
if (zzz_datetimer) {
/*20110223hone*/
if (window.XMLHttpRequest) {
xmlHttp0223 = new XMLHttpRequest();
}else if (window.ActiveXObject) {
xmlHttp0223 = new ActiveXObject("Microsoft.XMLHTTP");
}
if (!xmlHttp0223) {
alert('您使用的瀏覽器不支援 XMLHTTP 物件');
return false;
}
/*createXHR();*/
xmlHttp0223.open('GET','?callfunction=rlock&zzz_datetimer='+zzz_datetimer+'&session_id='+session_id +'&TimeStamp='+v_gettime,true);
xmlHttp0223.onreadystatechange=function()
{
if (xmlHttp0223.readyState==4)
{
if (xmlHttp0223.status == 200)
{
}
}
};
xmlHttp0223.send(null);
} /* empty(zzz_datetimer) */
} /* if (_rlock=='Locked'){ */
}

;
function session_id() {
if (window.XMLHttpRequest) {
xmlHttp103898916 = new XMLHttpRequest();
}else if (window.ActiveXObject) {
xmlHttp103898916 = new ActiveXObject("Microsoft.XMLHTTP");
}
xmlHttp103898916.open('GET','?callfunction=session_id',true);
xmlHttp103898916.onreadystatechange=function()
{
if (xmlHttp103898916.readyState==4)
{
if (xmlHttp103898916.status == 200)
{
var s = xmlHttp103898916.responseXML;
_refresh('_session_id',s.getElementsByTagName('session_id')[0].childNodes[0].nodeValue);
}
}
};
xmlHttp103898916.send(null);
}


function _today(){
var _today;
dateValue = new Date() ;
var M = "" + (dateValue.getMonth()+1);
var MM = "0" + M;
MM = MM.substring(MM.length-2, MM.length);
var D = "" + (dateValue.getDate());
var DD = "0" + D;
DD = DD.substring(DD.length-2, DD.length);
var YYYY = "" + (dateValue.getFullYear());
_today=YYYY+'-'+MM+'-'+DD;
return _today}function createXHR(){
if (window.XMLHttpRequest) {
xmlHttp = new XMLHttpRequest();
}else if (window.ActiveXObject) {
xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
}
if (!xmlHttp) {
alert('您使用的瀏覽器不支援 XMLHTTP 物件');
return false;
}
}var finalizeMe = (function(){
var global = this,base,safe = false,svType = (global.addEventListener && 2)||(global.attachEvent && 3)|| 0;
function addFnc(next, f){function t(ev){if(next)next(ev);f(ev);};t.addItem = function(d){if(f != d.getFunc()){if(next){next.addItem(d);}else{next = d;}}return this;};t.remove = function(d){if(f == d){f = null;return next;}else if(next){next = next.remove(d);}return this;};t.getFunc = function(){return f;};t.finalize = function(){if(next)next = next.finalize();return (f = null);};return t;};
function addFunction(f){if(base){base = base.addItem(addFnc(null, f));}else{base = addFnc(null, f);}};
function ulQue(f){addFunction(f);if(!safe){switch(svType){case 2:global.addEventListener("unload", base, false);safe = true;break;case 3:global.attachEvent("onunload", base);safe = true;break;default:if(global.onunload != base){if(global.onunload)addFunction(global.onunload);global.onunload = base;}break;}}};
ulQue.remove = function(f){if(base)base.remove(f);};
function finalize(){if(base){base.finalize();switch(svType){case 3:global.detachEvent("onunload", base);break;case 2:global.removeEventListener("unload", base, false);break;default:global.onunload = null;break;}base = null;}safe = false;};
ulQue(finalize);return ulQue;
})();


var InitializeMe = (function(){
var global = this,base = null,safe = false;
var listenerType = (global.addEventListener && 2)||(global.attachEvent && 3)|| 0;
function getStackFunc(next, funcRef, arg1,arg2,arg3,arg4){function l(ev){funcRef((ev?ev:global.event), arg1,arg2,arg3,arg4);if(next)next = next(ev);return (funcRef = null);};l.addItem = function(d){if(next){next.addItem(d);}else{next = d;}};return l;};
return (function(funcRef, arg1,arg2,arg3,arg4){if(base){base.addItem(getStackFunc(null, funcRef, arg1,arg2,arg3,arg4));}else{base = getStackFunc(null, funcRef, arg1,arg2,arg3,arg4);}if(!safe){switch(listenerType){case 2:global.addEventListener("load", base, false);safe = true;break;case 3:global.attachEvent("onload", base);safe = true;break;default:if(global.onload != base){if(global.onload){base.addItem(getStackFunc(null, global.onload));}global.onload = base;}break;}}});
})();
var queryStrings = (function(out){
    if(typeof location != 'undefined'){
        var temp = location.search||location.href||'';
        var nvp, ofSet;
        if((ofSet = temp.indexOf('?')) > -1){
            temp = temp.split("#")[0];
            temp = temp.substring((ofSet+1), temp.length);
            var workAr = temp.split('&');
            for(var c = workAr.length;c--;){
                nvp = workAr[c].split('=');
                if(nvp.length > 1){out[nvp[0]] = nvp[1];}
            }
        }
    }
    return out;
})({});

var TimedQue = (function(){
var base, timer;
var interval = 60;
var newFncs = null;
function addFnc(next, f){function t(){next = next&&next();if(f()){return t;}else{f = null;return next;}}t.addItem = function(d){if(next){next.addItem(d);}else{next = d;}return this;};t.finalize = function(){return ((next)&&(next = next.finalize())||(f = null));};return t;}
function tmQue(fc){if(newFncs){newFncs = newFncs.addItem(addFnc(null, fc));}else{newFncs = addFnc(null, fc);}if(!timer){timer = setTimeout(tmQue.act, interval);}}
tmQue.act = function(){var fn = newFncs, strt = new Date().getTime();if(fn){newFncs = null;if(base){base.addItem(fn);}else{base = fn;}}base = base&&base();if(base||newFncs){var t = interval - (new Date().getTime() - strt);timer = setTimeout(tmQue.act, ((t > 0)?t:1));}else{timer = null;}};
tmQue.act.toString = function(){return 'TimedQue.act()';};
tmQue.finalize = function(){timer = timer&&clearTimeout(timer);base = base&&base.finalize();newFncs = null;};
return tmQue;
})();

var getElementWithId = (function(){if(document.getElementById){return (function(id){return document.getElementById(id);});}else if(document.all){return (function(id){return document.all[id];});}return (function(id){return null;});})();

function getSimpleExtPxIn(el){
var temp, temp2, tick = 0, getBorders = retFalse, doCompStyle = retFalse,defaultView,objList = [];
function retFalse(){return false;}
retFalse.elTest = retFalse;
retFalse.iY = retFalse.iX = retFalse.y = retFalse.x = retFalse.w = retFalse.h = retFalse.bb = retFalse.bt = retFalse.bl = retFalse.br = 0;
function retThis(){return retThis;}
function gCompStyleBorders(p, el){doCompStyle(p, defaultView.getComputedStyle(el, '' ));}
function doComputedStyleFloat(p, cs){p.bt = (cs.getPropertyCSSValue('border-top-width').getFloatValue(5));p.bl = (cs.getPropertyCSSValue('border-left-width').getFloatValue(5));p.br = (cs.getPropertyCSSValue('border-right-width').getFloatValue(5));p.bb = (cs.getPropertyCSSValue('border-bottom-width').getFloatValue(5));}
function doComputedStyleValue(p, cs){p.bt = Math.ceil(parseFloat(s.getPropertyValue('border-top-width')))|0;p.bl = Math.ceil(parseFloat(s.getPropertyValue('border-left-width')))|0;p.br = Math.ceil(parseFloat(s.getPropertyValue('border-right-width')))|0;p.bb = Math.ceil(parseFloat(s.getPropertyValue('border-bottom-width')))|0;}
function gClientBorders(p, el){if(el.clientWidth||el.clientHeight){p.bb = (el.offsetHeight - (el.clientHeight + (p.bt = el.clientTop|0)))|0;p.br = (el.offsetWidth - (el.clientWidth + (p.bl = el.clientLeft|0)))|0;}}
function getInterfaceObj(el){var lastTick = NaN;var offsetParent = getSimpleExtPxInFn(el.offsetParent)||retFalse;function p(doTick){if(doTick){tick = (1+tick)%0xEFFFFFFF;}if(tick != lastTick){lastTick = tick;offsetParent();getBorders(p, el);p.iY = (p.y = (offsetParent.iY + (el.offsetTop|0))) + p.bt;p.iX = (p.x = (offsetParent.iX + (el.offsetLeft|0))) + p.bl;p.w = el.offsetWidth|0;p.h = el.offsetHeight|0;}return p;}p.elTest = function(elmnt){return (elmnt == el);};p.iY = p.iX = p.w = p.h = p.y = p.x = p.bb = p.bt = p.bl = p.br = 0;return (objList[objList.length] = p);}
function getSimpleExtPxInFn(el){if((!el)||(el == document)){return retFalse;}for(var c = objList.length;c--;){if(objList[c].elTest(el)){return objList[c];}}return getInterfaceObj(el);}
function setSpecialObj(el){var lastTick = NaN;function p(doTick){if(doTick){tick = (1+tick)%0xEFFFFFFF;}return p;}p.elTest = function(elmnt){return (elmnt == el);};p.iY = p.iX = p.w = p.h = p.y = p.x = p.bb = p.bt = p.bl = p.br = 0;objList[objList.length] = p;}
if((typeof el.offsetParent != 'undefined')&&(typeof el.offsetTop == 'number')&&(typeof el.offsetWidth == 'number')){if((typeof el.clientTop == 'number')&&(typeof el.clientWidth == 'number')){getBorders = gClientBorders;}else if((defaultView = document.defaultView)&&defaultView.getComputedStyle &&(temp = defaultView.getComputedStyle(el, '' ))&&(((temp.getPropertyCSSValue)&&(temp2 = temp.getPropertyCSSValue('border-top-width'))&&(temp2.getFloatValue)&&(doCompStyle = doComputedStyleFloat))||((temp.getPropertyValue)&&(doCompStyle = doComputedStyleValue)))){getBorders = gCompStyleBorders;temp2 = temp = null;}if(document.documentElement){setSpecialObj(document.documentElement);}if(document.body){setSpecialObj(document.body);}return (getSimpleExtPxIn = getSimpleExtPxInFn)(el);}else{retThis.elTest = retFalse;retThis.iY = retThis.iX = retThis.y = retThis.x = retThis.w = retThis.h = retThis.bb = retThis.bt = retThis.bl = retThis.br = NaN;return (getSimpleExtPxIn = retThis);}
}

function getNewFILCFncStac(fnc){function getNewFnc(f){var next = null;function t(a){next = next&&next(a);return (f(a))?t:next;}t.finalize = function(){next = next&&next.finalize();return (f = null);};t.addItem = function(d){if(f != d){if(next){next.addItem(d);}else{next = getNewFnc(d);}}return this;};return t;}var base = getNewFnc(fnc);fnc = function(a){base = base&&base(a);};fnc.addItem = function(d){if(base){base.addItem(d)}else{base = getNewFnc(d);}};fnc.finalize = function(){return (base = base&&base.finalize());};return fnc;}

function GlobalEventMonitor(eventName, functinRef){
var finalize, global = this;
var monitors = {};
var onName = ['on',''];
function mainMonitor(eventName, functinRef){
var monitor = monitors[eventName];
if(monitor){
monitor(functinRef);
}else{
setEventMonitor(eventName, functinRef);
}
}
function setListener(eventName, longName, fncStack){
global.addEventListener(eventName, fncStack, false);
return true;
}
function setListener_aE(eventName, longName, fncStack){
global.attachEvent(longName, fncStack);
return true;
}
function oldHandler(f){return (function(e){f(e);return true;});}
function retFalse(){return false;}
function setEventMonitor(eventName, functinRef){
var fncStack, longName;
onName[1] = eventName;
longName = onName.join('');
function main(funcRef){
if(funcRef){
fncStack.addItem(funcRef);
globalCheck();
}
}
function globalCheck(){
if(global[longName] != fncStack){
if(global[longName]){
fncStack.addItem(oldHandler(global[longName]));
}
global[longName] = fncStack;
}
}
fncStack = getNewFILCFncStac(functinRef);
if(setListener(eventName, longName, fncStack)){
globalCheck = retFalse;
}else{
globalCheck();
}
finalize.addItem(fncStack.finalize);
monitors[eventName] = main;
functinRef = null;
}
if(!global.addEventListener){
if(global.attachEvent){
setListener = setListener_aE;
}else{
setListener = retFalse;
}
}
finalizeMe((finalize = getNewFILCFncStac(
function(){
finalize = monitors = null;
})
));
(GlobalEventMonitor = mainMonitor)(eventName, functinRef);
functinRef = null;
}

var tableScroll = (function(){
var global = this, finalise, tableList = {};
var notOnScroll = true, notAbort = true;
var overrideStyles = {
margin:[{keys:['margin','marginBottom','marginLeft','marginRight','marginTop'],value:'0px'}],
padding:[{keys:['padding','paddingBottom','paddingLeft','paddingRight','paddingTop'],value:'0px'}],
border:[
{keys:['border','borderBottom','borderLeft','borderRight','borderTop'],value:'0px none #FFFFFF'},
{keys:['borderWidth','borderLeftWidth','borderRightWidth','borderBottomWidth','borderTopWidth'],value:'0px'},
{keys:['borderStyle','borderRightStyle','borderLeftStyle','borderBottomStyle','borderTopStyle'],value:'none'}
],
overflow:[{keys:['overflow'],value:'hidden'}],
positionRel:[{keys:['position'],value:'relative'}],
positionAbs:[{keys:['position'],value:'absolute'}],
top:[{keys:['top'],value:'0px'}],
left:[{keys:['left'],value:'0px'}],
zIndex:[{keys:['zIndex'],value:2}]
};
function setStyleProps(styleObj){
var data, dArray;
for(var c = 1;c < arguments.length;c++){
if((data = overrideStyles[arguments[c]])){
for(var d = data.length;d--;){
dArray = data[d].keys;
for(var e = dArray.length;e--;){
styleObj[dArray[e]] = data[d].value;
}
}
}
}
return true;
}
function setClass(el,val){
if(el.setAttribute){el.setAttribute('class',val);}
return (el.className = val);
}
function retFalse(){return false;}
function TableScroll(id){
var midAbsDiv, parent, vHeaderAbsStyle, vHeaderRelStyle, hHeaderAbsStyle, hHeaderRelStyle;
var midAbsDivStyle, midAbsinerDivStyle, inRelDivStyle, outRelDivDim;
var lastScrollTop = NaN, lastScrollLeft = NaN, lastWidth = NaN, lastHeight = NaN, tableDim, table = getElementWithId(id);
var midRelinerDivStyle, midRelinerDiv, testCellDim;
function position(){
var nh,nw,size,th,tw,cellWidth,celHeight,st = midAbsDiv.scrollTop, sl = midAbsDiv.scrollLeft, h = outRelDivDim(true).h, w = outRelDivDim.w;
if((size = ((w != lastWidth)||(h != lastHeight)))||(st != lastScrollTop)||(sl != lastScrollLeft)){
hHeaderRelStyle.left = (((cellWidth = (testCellDim().x - tableDim().iX)) + (lastScrollLeft = sl)) * -1)+'px'; /* position */
vHeaderRelStyle.top = (((celHeight = (testCellDim.y - tableDim.iY)) + (lastScrollTop = st)) * -1)+'px';
if(size){
vHeaderRelStyle.width = vHeaderAbsStyle.width = midAbsDivStyle.left = hHeaderAbsStyle.left = (cellWidth+'px');
hHeaderRelStyle.height = hHeaderAbsStyle.height = midAbsDivStyle.top = vHeaderAbsStyle.top = (celHeight+'px');
inRelDivStyle.left = (cellWidth * -1)+'px';
inRelDivStyle.top = (celHeight * -1)+'px';
midRelinerDivStyle.width = midAbsinerDivStyle.width = ((tw = tableDim.w) - cellWidth)+'px';
midRelinerDivStyle.height = midAbsinerDivStyle.height = ((th = tableDim.h) - celHeight)+'px';
midAbsDivStyle.height = vHeaderAbsStyle.height = (((nh = ((lastHeight = h) - celHeight)) > celHeight)?nh:celHeight)+'px';
midAbsDivStyle.width = hHeaderAbsStyle.width = (((nw = ((lastWidth = w) - cellWidth)) > cellWidth)?nw:cellWidth)+'px';
hHeaderRelStyle.width = inRelDivStyle.width = tw + 'px';
vHeaderRelStyle.height = inRelDivStyle.height = th + 'px';
}
}
return notOnScroll;
}
function onScroll(){
notOnScroll = false;
position();
}
function onSize(){
position();
return true;
}
finalise.addItem(function(){
testCellDim = midRelinerDivStyle = midRelinerDiv =
midAbsinerDivStyle =  tableDim = vHeaderAbsStyle = vHeaderRelStyle = hHeaderAbsStyle = hHeaderRelStyle = inRelDivStyle = outRelDivDim = midAbsDiv = parent = table = null;
})
if(
table&&
(typeof table.scrollTop == 'number')&&
(typeof table.offsetHeight == 'number')&&
table.tagName&&
table.appendChild&&
table.cloneNode&&
table.getAttribute&&
table.getElementsByTagName&&
(parent = table.parentNode)&&
parent.insertBefore
  ){
InitializeMe(function(){
var newTable, testCell;
var vHeaderAbs, vHeaderRel, hHeaderAbs, hHeaderRel,outRelDiv, midAbsinerDiv, inRelDiv;
if(
(notAbort)&&
(testCell = table.getElementsByTagName('td')[0])&&
(newTable = table.cloneNode(true))&&
(outRelDiv = document.createElement('DIV'))&&
(setClass(outRelDiv, 'tableBoxOuter'))&&
(midAbsDiv = document.createElement('DIV'))&&
(midRelinerDiv = document.createElement('DIV'))&&
(midAbsinerDiv = document.createElement('DIV'))&&
(inRelDiv = document.createElement('DIV'))&&
(vHeaderAbs = document.createElement('DIV'))&&
(vHeaderRel = document.createElement('DIV'))&&
(hHeaderAbs = document.createElement('DIV'))&&
(hHeaderRel = document.createElement('DIV'))&&
(setStyleProps(outRelDiv.style, 'positionRel', 'padding'))&&
(midAbsDivStyle = midAbsDiv.style)&&
(setStyleProps(midAbsDivStyle, 'positionAbs', 'padding', 'margin', 'border', 'zIndex'))&&
(midRelinerDivStyle = midRelinerDiv.style)&&
(setStyleProps(midRelinerDivStyle, 'positionRel', 'padding', 'margin', 'border', 'top', 'left'))&&
(midAbsinerDivStyle = midAbsinerDiv.style)&&
(setStyleProps(midAbsinerDivStyle, 'positionAbs', 'overflow', 'padding', 'margin', 'border', 'top', 'left'))&&
(inRelDivStyle = inRelDiv.style)&&
(setStyleProps(inRelDivStyle, 'positionRel', 'padding', 'margin', 'border', 'top', 'left'))&&
(vHeaderAbsStyle = vHeaderAbs.style)&&
(setStyleProps(vHeaderAbsStyle, 'positionAbs', 'overflow', 'padding', 'margin', 'border', 'top', 'left', 'zIndex'))&&
(vHeaderRelStyle = vHeaderRel.style)&&
(setStyleProps(vHeaderRelStyle, 'positionRel', 'padding', 'margin', 'border', 'top', 'left'))&&
(hHeaderAbsStyle = hHeaderAbs.style)&&
(setStyleProps(hHeaderAbsStyle, 'positionAbs', 'overflow', 'padding', 'margin', 'border', 'top', 'left', 'zIndex'))&&
(hHeaderRelStyle = hHeaderRel.style)&&
(setStyleProps(hHeaderRelStyle, 'positionRel', 'padding', 'margin', 'border', 'top', 'left'))&&
(setStyleProps(table.style, 'margin'))&&
(midAbsDiv.appendChild(midRelinerDiv))&&
(midRelinerDiv.appendChild(midAbsinerDiv))&&
(midAbsinerDiv.appendChild(inRelDiv))&&
(outRelDiv.appendChild(midAbsDiv))&&
(vHeaderAbs.appendChild(vHeaderRel))&&
(hHeaderAbs.appendChild(hHeaderRel))&&
(outRelDiv.appendChild(vHeaderAbs))&&
(outRelDiv.appendChild(hHeaderAbs))&&
(parent.insertBefore(outRelDiv, table))&&
(!isNaN((outRelDivDim = getSimpleExtPxIn(outRelDiv)).w))&&
(inRelDiv.appendChild(table))&&
(!isNaN((testCellDim = getSimpleExtPxIn(testCell)).w))&&
(!isNaN((tableDim = getSimpleExtPxIn(table)).w))&&
(hHeaderRel.appendChild(newTable))&&
(newTable = table.cloneNode(true))&&
(vHeaderRel.appendChild(newTable))
  ){
midAbsDivStyle.overflow = 'scroll';
if(midAbsDiv.addEventListener){
midAbsDiv.addEventListener('scroll', onScroll, false);
}else if(midAbsDiv.attachEvent){
midAbsDiv.attachEvent('onscroll', onScroll);
}else{
midAbsDiv.onscroll = onScroll;
}
GlobalEventMonitor('resize', onSize);
position();
TimedQue(position);
}else{
notAbort = false;
}
});
}else{
notAbort = false;
}
return true;
}
function main(){
var id;
for(var c = 0;c < arguments.length;c++){
id = arguments[c];
if(notAbort&&!tableList[id]){
tableList[id] = TableScroll(id);
}
}
}
if(
(!global.queryStrings||!queryStrings['noTableScroll'])&&
global.setTimeout&&
global.document&&
document.createElement
){
finalizeMe((finalise = getNewFILCFncStac(function(){
finalise = tableList = null;
})));
return main;
}else{
return retFalse;
}
})();function maximize() {window.moveTo(0,0) ;  window.resizeTo(screen.availWidth, screen.availHeight);}
function NumericInputFormat(input) {input.className="CSS_Input_Number_Format";}
function LineNumericInputFormat(input) {input.className="CSS_Line_Input_Number_Format";}
function NumericNormalFormat(input) {input.className="CSS_Table_Normal_Number_Format";}
function LineNumericNormalFormat(input) {input.className="CSS_Line_Normal_Number_Format";}
function Focus_Border_Right(input) { input.className="Focus_Border_Right";}
function LostFocus_Border_Right(input) {input.className="CSS_LostFocus_Border_Right";}
function TextNormalFormat(input) {input.className="CSS_Normal_Text_Format";}
function LineTextNormalFormat(input) {input.className="CSS_Line_Normal_Text_Format";}
function _disabled(v_field_,v_mode_){$(v_field_).each(function() {this.disabled=v_mode_;})}function save2() {jConfirm('Are you confirm?', 'Confirmation Dialog', function(r) {if (r){/*20110122*/
{document.form1.submit();}}});}
function setTrClass() {var object=document.getElementsByTagName("tr");
for (var i=0;i<object.length;i++) {object[i].className="row";}}
function _refresh(v_id,v_value,v_enable){if (document.getElementById(v_id)){document.getElementById(v_id).value=v_value;}}
function _lookup(v_id,v_value,v_enable){if(document.getElementById(v_id)){return document.getElementById(v_id).value;}else {return ""}}
function _scan(fv_table, fv_function){
_result=0;
if (document.getElementById(fv_table)){
var _result=0 ; var tbl = document.getElementById(fv_table);var lastRow = tbl.rows.length - 1;
for (iix=1; iix<=lastRow; iix++){eval(fv_function);}}
return _result;
}
function ltrim(str){ return str.replace(/^\s+/,''  ); }
function rtrim(str) { return str.replace(/\s+$/, ''); }
function myFocus(){this.focus();}
function mySelect(){this.select();}
function alltrim(str) { return str.replace(/^\s+|\s+$/g, '');}
function X_readonly (v_field,v_mode){}

function _readonly (v_field,v_mode)
{

$(v_field).each(function() {
  switch(this.type) {
    case 'radio':
    case 'checkbox': if (this.checked) alert(this.value); break;
    case 'text':
     if (v_mode) {
var temp_col={'background-color': '#dcdcdc', 'color':'#000'};
/* this.readonly=true;*/
/* $(this).attr("readonly") == true;*/
this.onclick = function(event) {return false;}
$(v_field).attr('readonly',true) ;          
$(v_field).attr('onclick',function (){return false;}) ;                        
}
else
{var temp_col={'background-color': 'white', 'color':'black'};
this.readonly=false;
this.onclick = function(event) {return true;}
$(v_field).attr('readonly',false) ;                        
$(v_field).attr('onclick',function (){return true;}) ;
}
$(v_field).css(temp_col);
    break;
    case 'textarea':
     case 'hidden':
    case 'button': _disabled(v_field,v_mode); break;
/*  case 'button': this.disabled=v_mode; break;*/


    case 'select-one': alert(this.value); break;
    default: alert("unhandled type: "+this.type);
  }
});







/* $(v_field).each(function() {
 switch(this.type) {
   case 'radio':
   case 'checkbox': if (this.checked) alert(this.value); break;
   case 'text':
 if (v_mode) {
var temp_col={'background-color': '#dcdcdc', 'color':'#000'};
$(v_field).attr('readonly',true) ;                        
$(v_field).attr('onclick',function (){return false;}) ;                        
$(v_field).css(temp_col);}
else
{var temp_col={'background-color': 'white', 'color':'black'};
$(v_field).attr('readonly',false) ;                        
$(v_field).attr('onclick',function (){return true;}) ;
$(v_field).css(temp_col);}
break;
   case 'textarea':
   case 'select-one': alert(this.value); break;
   default: alert("unhandled type: "+this.type);
})  
 }*/

};











/*$('a').removeAttr('onclick');*/

/*$('.form_element').each(function() {
  switch(this.type) {
    case 'radio':
    case 'checkbox': if (this.checked) alert(this.value); break;
    case 'text':
    case 'textarea':
    case 'select-one': alert(this.value); break;
    default: alert("unhandled type: "+this.type);
  }
});*/function PopupCenter(pageURL, title,w,h) {
var left = (screen.width/2)-(w/2);
var top = (screen.height/2)-(h/2);
var targetWin = window.open (pageURL, title, 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width='+w+', height='+h+', top='+top+', left='+left);
/* *onclick="PopupCenter('http://www.nigraphic.com', 'myPop1',400,400);" */
} function setLineDefaultBackgroundColor( type_,input,cellid,deci_)
{ document.getElementById( cellid ).style.background="RGB(255,255,255)";
document.getElementById( cellid ).style.color="RGB(0,0,0)";
if (type_=='N')
{
if (! input.value)
{
input.value=0;
}
LineNumericNormalFormat(input);
input.value=parseFloat(input.value).toFixed(deci_);
}
else
{
LineTextNormalFormat(input);
}
}  /* function setBackgroundColor */




/*function setDefaultBackgroundColor( type_,deci_,input,cellid,rowid ,tableid){
var number_of_columns =(document.getElementById(tableid).getElementsByTagName('th').length);
for (i=1;i<=number_of_columns;i++){
if(document.getElementById(tableid).rows[rowid].cells[i-1*1].childNodes[0]){
document.getElementById(tableid).rows[rowid].cells[i-1*1].childNodes[0].style.background="RGB(255,255,255)" ;}
document.getElementById( cellid ).style.color="RGB(0,0,0)";
if (type_=='N'){
if (! input.value) {input.value=0;}
input.value=parseFloat(input.value).toFixed(deci_);
NumericNormalFormat(input);}
else {TextNormalFormat(input);
}
}
}*/
function setGridBackgroundColor( type_,input,cellid,rowid ,tableid,inputtype_)
{
var number_of_columns =(document.getElementById(tableid).getElementsByTagName('th').length);
for (i=1;i<=number_of_columns;i++)
{
if(document.getElementById(tableid).rows[rowid].cells[i-1*1].childNodes[0])
{
document.getElementById(tableid).rows[rowid].cells[i-1*1].childNodes[0].style.background="RGB(255,255,180)" ;
document.getElementById(tableid).rows[rowid].cells[i-1*1].childNodes[0].parentNode.style.background="RGB(255,255,180)" ;
} /* if */
document.getElementById( cellid ).style.background="RGB(0,128,192)";
document.getElementById( cellid ).parentNode.style.background="RGB(0,128,192)";
document.getElementById( cellid ).style.color="RGB(255,255,255)";
if (inputtype_=='select'){Focus_Border_Right(input);} else {NumericInputFormat(input); }
document.getElementById( cellid ).focus(); /* cellid.focus();  */
} /* for (document.getElementById(tableid).rows[rowid].cells[i-1*1].childNodes[0]) */
switch(browserlevel)
{
case 4:
setSelectionRange_(cellid, 0, 0);
break ;
case 5 :
setSelectionRange_(cellid, 0, 0);
break ;
default :
/* setSelectionRange_(cellid, 0, 0); */
break ;
}
if (! inputtype_=='select') { SelectAll(cellid);}
/* setSelectionRange(cellid, 0, 0); */
/* SelectAll(cellid);*/
 }  /* function setBackgroundColor */







function setLineBackgroundColor( type_,input,cellid)
{ document.getElementById( cellid ).style.background="RGB(0,128,192)";
document.getElementById( cellid ).style.color="RGB(255,255,255)";
if (type_=='N'){
LineNumericInputFormat(input); }else {LineTextNormalFormat(input)}
document.getElementById( cellid ).focus(); /* cellid.focus();  */
SelectAll(cellid);
}   /* function setBackgroundColor */

/*function setLineBackgroundColor( type_,input,cellid)
{ document.getElementById( cellid ).style.background="RGB(0,128,192)";
document.getElementById( cellid ).style.color="RGB(255,255,255)";
NumericInputFormat(input);
document.getElementById( cellid ).focus();
SelectAll(cellid);
} */  /* function setBackgroundColor */
 function setGridDefaultBackgroundColor( type_,deci_,input,cellid,rowid ,tableid,inputtype_){
var number_of_columns =(document.getElementById(tableid).getElementsByTagName('th').length);
for (i=1;i<=number_of_columns;i++){
if(document.getElementById(tableid).rows[rowid].cells[i-1*1].childNodes[0]){
document.getElementById(tableid).rows[rowid].cells[i-1*1].childNodes[0].style.background="RGB(255,255,255)" ;
document.getElementById(tableid).rows[rowid].cells[i-1*1].childNodes[0].parentNode.style.background="RGB(255,255,255)" ;}
document.getElementById( cellid ).style.color="RGB(0,0,0)";
if (type_=='N'){
if (! input.value) {input.value=0;}
input.value=parseFloat(input.value).toFixed(deci_);
NumericNormalFormat(input);
}
else {
if (inputtype_=='select'){
/*LostFocus_Border_Right(input);*/}
else {
TextNormalFormat(input)
;}
}
}
}
function NumericFormat(input){
var num = input.value.replace(/\,/g,'');
if(!isNaN(num)){
if(num.indexOf('.') > -1){
num = num.split('.');
num[0] = num[0].toString().split('').reverse().join('').replace(/(?=\d*\.?)(\d{3})/g,'$1,').split('').reverse().join('').replace(/^[\,]/,'');
if(num[1].length > 2){
  alert('You may only enter two decimals!');
  num[1] = num[1].substring(0,num[1].length-1);
  }  input.value = num[0]+'.'+num[1];      
}
else{ input.value = num.toString().split('').reverse().join('').replace(/(?=\d*\.?)(\d{3})/g,'$1,').split('').reverse().join('').replace(/^[\,]/,'') };
}
else{ alert('You may enter only numbers in this field!');
input.value = input.value.substring(0,input.value.length-1);}}
     
     


function Validate_Numeric(evt,value) {
if(!isNaN(value)){
/*alert(evt);
alert(isNaN(value));
alert(value);
var num = object.value.replace(/\,/g,''); */
  var theEvent = evt || window.event;
  var key = theEvent.keyCode || theEvent.which;
  key = String.fromCharCode( key );
  var regex = /[0-9]|\./;
  if( !regex.test(key) ) {
    theEvent.returnValue = false;
if (theEvent.preventDefault)
    theEvent.preventDefault();
  else if (theEvent.cancelBubble)   /* for ie */
    theEvent.cancelBubble = true;
/*    theEvent.preventDefault(); */
  }}
  else
  {theEvent.returnValue = false;}
}

/* function handleKeyPress(evt) {
  var nbr;
  var nbr = (window.event)?event.keyCode:evt.which;
  alert(nbr);
  return true;
  }  */
function ZapInGrid(tableid)
{var tbl = document.getElementById(tableid);
  var lastRow = tbl.rows.length;
  if (lastRow >=2) tbl.deleteRow(lastRow - 1);}function padleft(input, ch, num) {
var val=input.value;
if (val.length<num) {
   if(val){
    var re = new RegExp(".{" + num + "}$");
var new_num=num*1-val.length;
    var pad = "";
    if (!ch) ch = " ";
       do  {
           pad += ch;
           }while(pad.length < new_num);
input.value=(pad+val);
    }
    }
    }
 
    function cfm() { if (!confirm("确定(Y/N)嗎?")) { window.event.returnValue = false; }}
function winexit(sid) {  $.cookie("example",sid); window.returnValue =sid;window.close();}
function thisrecno(sid) {_refresh("recno",sid*1+1*1);}
function SelectAll(id){if (document.getElementById(id)){_current_id=id; document.getElementById(id).focus();document.getElementById(id).select();}}
function checkKeycode(e) {
var keycode;
if (window.event) keycode = window.event.keyCode;
else if (e) keycode = e.which;
if(event.keyCode==13)
{if (window.event.srcElement.type!="submit")
{if (window.event.srcElement.type!="reset")
{if (window.event.srcElement.type!="button")
{event.keyCode=9;   }
var next=x.tabIndex;}}}
}
</script>

<style type="text/css"><!--

body {
margin-left: 1px;
margin-top: 1px;
margin-right: 1px;
margin-bottom: 1px;
font-size:13px;
/* text-align:center; */ /* center all the text */
}

/*table { font-family: "細明體"; font-size: 9pt; line-height: 20px; color: #000000} */

/* html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, font, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td {
margin: 0;
padding: 0;
border: 0;
outline: 0;
font-weight: inherit;
font-style: inherit;
font-size: 100%;
font-family: inherit;
vertical-align: baseline;
} */

fieldset {
border: 1px solid black; padding: 8px; margin: 8px 0;
}
/* remember to define focus styles! */
:focus {
outline: 0;
}

/* body {
line-height: 1;
color: black;
background: white;
}
/* body, div { font-family: 'lucida grande', helvetica, verdana, arial, sans-serif } */
body { margin: 0; padding: 0; font-size: small; color: #333 }*/



h1, h2 { font-family: 'trebuchet ms', verdana, arial; padding: 10px; margin: 0 }
h1 { font-size: large }
#main { padding: 1em; }
#banner { padding: 15px; background-color: #06b; color: white; font-size: large; border-bottom: 1px solid #ccc;
    background: url(bg.gif) repeat-x; text-align: center }
#banner a { color: white; }
legend { font-weight: bold; }

button { padding: 0 6px; margin: 0; }

pre, code { white-space: pre; font-family: "Courier New"; }
pre { margin: 8px 0; }
h3 {
font-size: 110%;
font-weight: bold;
margin: .2em 0 .5em 0;
}
p { margin: 1em 0; }
strong { font-weight: bolder; }
em { font-style: italic; }

.jscom, .mix htcom   { color: #4040c2; }
.com      { color: green; }
.regexp   { color: maroon; }
.string   { color: teal; }
.keywords { color: blue; }
.global   { color: #008; }
.numbers  { color: #880; }
.comm     { color: green; }
.tag      { color: blue; }
.entity   { color: blue; }
.string   { color: teal; }
.aname    { color: maroon; }
.avalue   { color: maroon; }
.jquery   { color: #00a; }
.plugin   { color: red; }

#tooltip.pretty {
font-family: Arial;
border: none;
width: 210px;
padding:20px;
height: 135px;
opacity: 0.8;
background: url('shadow.png');
}
#tooltip.pretty h3 {
margin-bottom: 0.75em;
font-size: 12pt;
width: 220px;
text-align: center;
}
#tooltip.pretty div { width: 220px; text-align: left; }

#tooltip.fancy {
background: url('shadow2.png');
padding-top: 5em;
height: 100px;
}
#tooltip.fancy.viewport-right {
background: url('shadow2-reverse.png');
}

#extended { margin: 2em 0; }
#extended label { text-decoration: underline; }
#yahoo { width: 7em; }
#right, #right2 { text-align: right; }
#tooltip.right { width: 250px; }
#fancy2 { float: right; }p{
color:#000000;
margin:0px;
padding-top:0px;
padding-left:5px;
padding-right:5px;
line-height:20px;
}

input.btn{
color: #00008B;
background-color: #ADD8E6;
border: 1px outset #00008B;
padding: 1px 2px 1px 2px;
}

input.txt{
border: 1px inset #00008B;
background-color: #ADD8E6;
}


input {FONT-SIZE: 13px; vertical-align:middle;  FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif}
select {FONT-SIZE: 10px; FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif}
textarea {FONT-SIZE: 10px; FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif}
form{
padding:0px;
margin:0px;
font:14px Arial;
}

BODY,
HTML {
padding: 0px;
margin: 0px;
}
BODY {
font-size: 12px;
}

H1 {
font-size: 20px;
font-weight: normal;
}

H2 {
font-size: 16px;
font-weight: normal;
}

FIELDSET {
border: solid 1px #CCC;
-moz-border-radius: 16px;
-webkit-border-radius: 16px;
border-radius: 16px;
padding: 1em 2em;
margin: 1em 0em;
}

LEGEND {
color: #666;
font-size: 16px;
padding: 0em .5em;
}

PRE {
font-size: 11px;
color: #666;
background: #F8F8F8;
padding: 1em;
-moz-border-radius: 8px;
-webkit-border-radius: 8px;
border-radius: 8px;
}

/* Custom dialog styles */
#popup_container.style_1 {
font-family: Georgia, serif;
color: #A4C6E2;
background: #005294;
border-color: #113F66;
}

#popup_container.style_1 #popup_title {
color: #FFF;
font-weight: normal;
text-align: left;
background: #76A5CC;
border: solid 1px #005294;
padding-left: 1em;
}

#popup_container.style_1 #popup_content {
background: none;
}

#popup_container.style_1 #popup_message {
padding-left: 0em;
}

#popup_container.style_1 INPUT[type='button'] {
border: outset 2px #76A5CC;
color: #A4C6E2;
background: #3778AE;
}



        /**

        * Modal Dialog

        */

        .modalBg {

            position: absolute;

            top: 0px;

            left: 0px;

            filter: Alpha(Opacity=50);

            -moz-opacity: 0.5;

            background-color: #aad;

            visibility: hidden;

            width: expression(document.body.clientWidth);

            height: expression(document.body.scrollHeight > document.body.offsetHeight ? document.body.scrollHeight : document.body.offsetHeight);

            z-index: 100;

        }



        .modalDialog {
            position: absolute;
            top: 111px;
            left: 0px;
            height : 480px;  /* set the Dialog main body height  */
            visibility: hidden;
            z-index: 101;
            background-color: white;
            top: 111;
            height : 480px;  /* set the Dialog main body height  */
            left: 0;
   top: expression(document.body.clientHeight / 2 - this.offsetHeight / 2);
            left: expression(document.body.clientWidth / 2 - this.offsetWidth / 2);
            border: 1px solid #777;
            border-top: 0;
            padding: 20px;
        }

        .modalDialog .modalDialogHeader {
            margin:0;
            padding: 0px;
            color: #333;
            font-weight: bold;
            background-color: #ccc;
            border: 1px solid #989898;
            position: absolute;
            top: 0px;
            left: -1px;
            height: 7px;
        }

        .modalShadow {
            position: absolute;
            background-color: black;
            top: 0px;
            left: 0px;
            z-index: 99;
/*         left: expression(document.getElementById('frediko').style.left);
            top: expression(document.getElementById('frediko').style.top);  */
        }
.CSS_Invisible_Border {border-style: none;}
.CSS_Line_Normal_Number_Format {text-align: right; background-color: white;}
.CSS_Line_Input_Number_Format {text-align: right; background-color: white;}
.CSS_Line_Normal_Text_Format {text-align:left; background-color: white;}
.CSS_Disable_Number_Format {border-style:none; cursor: default; background-color: #dcdcdc; color:#000 ; text-align:right; margin-top:0px; margin-left: 0px; margin-right: 0px; margin-bottom: 0px;  cellspacing:0; cellpadding:0;}
.CSS_Table_Normal_Number_Format {valign:center; border-style: none; text-align: right;margin-top: 0px; margin-left: 0px; margin-right: 0px; margin-bottom: 0px; border-style: hidden;background-color: white;}
.CSS_Input_Number_Format {border-style: none; text-align: left;margin: 0px; border-style: hidden;background-color: white;}
.CSS_Focus_Border_Right {text-align: right; margin: 0px; background-color: white;}
.CSS_LostFocus_Border_Right{text-align:right; margin: 0px; background-color: white;}
.CSS_Normal_Text_Format {border-style:none;border-style:hidden;text-align:left; margin: 0px; background-color: white;}
.CSS_Disable_Text_Format {cursor: default; background-color: #dcdcdc; color:#000 ; text-align:left; margin:0px;  cellspacing:0; cellpadding:0;}
.tableBoxOuter {
width:100%; height:25em; // adjust size of table
background: #FFFFFF;
}

.scrolltable td, th {
font-size: 12px;
margin:0em;
padding-top: 4px;
padding-bottom: 4px;
padding-right: 4px;
padding-left: 4px;
table-layout: automatic;
white-space: nowrap;
}

  .tableBoxOuterx {
width:100%; height:auto; // adjust size of table
background: #FFFFFF;
}

input.btn {color:#050; boarder-size:0px; boarder-style:normal; background:inherit; font: bold 84% 'trebuchet ms',helvetica,sans-serif; color:blue; cursor:hand; cursor:pointer;  padding:0px;  vbackground-color:#fed; border: 0px magin:0 px; solid; border-color: #696 #363 #363 #696; filter:progid:DXImageTransform.Microsoft.Gradient (GradientType=0,StartColorStr='#ffffffff',EndColorStr='#ffeeddaa'); }
input.btnhov {border-tyle:inset; background-color: #FFFF99; border-color: #c63 #930 #930 #c63; }

body {font-family: "細明體", "Times New Roman", Times, serif; color: #000;background-color:#FFFFCE font-size: 150%;;}
.highlight_title {color: #FFF;background-color: #693;font-size: 18px;}
table {border-collapse:collapse}
table#s {float:left; border:0;padding:0;margin:0 0 1em;border-left:1px solid #336;border-top:1px solid #336;clear:left; margin-left:10px;margin-top:10px;}
table#d {border:0; padding:0; margin:0 0 1em;border-left:1px solid #336;border-top:1px solid #336; margin-top:10px; }
table#s tr,table#d tr {border:0;padding:2px 6px;margin:0;border-right:1px solid #336;border-bottom:1px solid #336;background-color:#EAEEF3;}
table#s th,table#d th {white-space:no-wrap;background-color:#B4C4D1;padding:2px 20px;}
table#s td:hover, table#d td:hover {background-color:#ADE5EB;}
.selrow td {background-color:#879AB7;}
p {clear:both;}
[readonly=readonly] {background-color: #dcdcdc; color:#000 ; }
td[axis='number'], td[axis='date'],input[axis='number'], input[axis='date'] {text-align:right;}
/* for sorttabled */
.odd td {background-color:#E8ECF1;}
.even td {background-color:#DDE5EB;}
.hover td {background-color:#A5B3C9;}
.sortedminus {background-color:#ecc;}
.sortedplus {background-color:#cec;}
.disclaimer {border-top:1px solid #ccc;color:#879AB7;padding-top:.5em;font-size:.9em;}
dl {margin:0 1em;padding:0;}
dl {float:left;}
li {padding:.1em 0;}
.text_line{clear:both;margin-bottom:0px;}
hr {clear:both;width:100%;background:#fff;height:0;border:0;border-bottom:1px solid #fff;margin:0 0 1em;padding:0;}
div.pageframe { clear: both;border: 1px solid #963;  height: 340px;  width: 95%       ;  background-color: rgb(255,255,0);   margin-left:5px;  padding-right:50px;  padding-top:5px; }

input[class=grid_header_caption]{vertical-align: middle; margin: 0px; border-style: none ; background-color: #399; cellspacing:0; cellpadding:0;}

input[class=grid_header_Rcaption]{vertical-align: middle; margin: 0px; border-style: none ; background-color: #399; cellspacing:0; cellpadding:0; text-align:right;}

table td{height:20px;}

.php_enquiry_table_margin{margin-top: 0px; margin-left:0px; margin-right:0px; }
.row {height:20px;}

.modal-overlay  /* the parent screen */
{
position:fixed;
top:0;
right:0;
bottom:0;
left:0;
height:100%;
width:100%;
margin:0;
padding:0;
background:#fff;
opacity:.51;
filter: alpha(opacity=51);
-moz-opacity: 0.51;
z-index:101;
}
* html .modal-overlay
{
position: absolute;
height: expression(document.body.scrollHeight > document.body.offsetHeight ? document.body.scrollHeight : document.body.offsetHeight + 'px');
}
.modal-window
{
position:fixed;
top:50%;
left:50%;
margin:0;
padding:0;
z-index:102;
}
* html .modal-window { position:absolute;}
.close-window  /* close button */
{
position:absolute;
width:52px;
height:52px;
right:1px;
top:30px;
border:1px;
/* background:transparent url('../html/close-button.png') no-repeat scroll right top; */
background:transparent url('../html/checker.bmp') no-repeat scroll right top;
text-indent:-99999px;
overflow:hidden;
cursor:pointer;
opacity:.5;
filter: alpha(opacity=50);
-moz-opacity: 0.5;
}
.close-window:hover
{
opacity:.99;
filter: alpha(opacity=99);
-moz-opacity: 0.99;
}
#retrieval {  margin-left: 10px; }

input[class=GridInputClass_SOB_partno] {margin-top: 0px; margin-left: 0px; margin-right: 0px; margin-bottom: 0px; border-style:none ; background-color:white; cellspacing:0; cellpadding:0;}
input[class=GridInputClass_SOB_partno]:hover {background-color: #FF9;}
input[class=GridInputClass_SOB_qty] {margin-top: 0px; margin-left: 0px; margin-right: 0px; margin-bottom: 0px; border-style:none ; background-color:white; cellspacing:0; cellpadding:0;}
input[class=GridInputClass_SOB_qty]:hover {background-color: #FF9;}
input[class=GridInputClass_SOB_uom] {margin-top: 0px; margin-left: 0px; margin-right: 0px; margin-bottom: 0px; border-style:none ; background-color:white; cellspacing:0; cellpadding:0;}
input[class=GridInputClass_SOB_uom]:hover {background-color: #FF9;}
input[class=GridInputClass_SOB_cur] {margin-top: 0px; margin-left: 0px; margin-right: 0px; margin-bottom: 0px; border-style:none ; background-color:white; cellspacing:0; cellpadding:0;}
input[class=GridInputClass_SOB_cur]:hover {background-color: #FF9;}
input[class=GridInputClass_SOB_so] {margin-top: 0px; margin-left: 0px; margin-right: 0px; margin-bottom: 0px; border-style:none ; background-color:white; cellspacing:0; cellpadding:0;}
input[class=GridInputClass_SOB_so]:hover {background-color: #FF9;}
input[class=GridInputClass_SOB_datetimer] {margin-top: 0px; margin-left: 0px; margin-right: 0px; margin-bottom: 0px; border-style:none ; background-color:white; cellspacing:0; cellpadding:0;}
input[class=GridInputClass_SOB_datetimer]:hover {background-color: #FF9;}
input[class=GridInputClass_SOB_prod_qty] {margin-top: 0px; margin-left: 0px; margin-right: 0px; margin-bottom: 0px; border-style:none ; background-color:white; cellspacing:0; cellpadding:0;}
input[class=GridInputClass_SOB_prod_qty]:hover {background-color: #FF9;}
div.tableContainer{clear: both;border: 1px solid #963;height: 285px; overflow-y:scroll; overflow-x:auto ;}#outertable{ margin-top: 0px; margin-left: 0px; margin-right:0px;}
table{ border-collapse: collapse }
#statusline{ margin-top: 20px; margin-left: 10px; margin-right:10px;}
/* table styles */
#top_button {border:0;padding:0;margin:0 0 1em;border-left:1px solid #336;border-top:1px solid #336;float:left;clear:left;}
#table_button {border:0;padding:0;margin:0 0 1em;border-left:1px solid #336;border-top:1px solid #336;float:left;clear:left;}
#table_status {border:0;padding:0;margin:0 0 1em;border-left:1px solid #336;border-top:1px solid #336;float:left;clear:left;}
tr {border:0;padding:0;margin:0;}
td, th {border:0;padding:0px 0px;margin:0;border-right:1px solid #336;border-bottom:1px solid #336;}
td[axis='number'], td[axis='date'] {text-align:right;}
tfoot td {border-top:1px solid #003;}
th {white-space:no-wrap;background-color:#B4C4D1;padding:2px 20px;}
thead th {border-bottom:2px solid #003;}
#outertable_0{margin-top: 0px; margin-left:10px; margin-right:0px; }


--></style>

<!-- <link rel="stylesheet" href="../html/hongkong2000a.css"  type="text/css" media="screen" /> -->
<link rel="stylesheet" href="../html/jquery.alerts.css"  type="text/css" media="screen" />
<link rel="stylesheet" href="../html/jquery.tooltip.css" />
<link rel="stylesheet" href="../html/jquery.autocomplete.css" />
</head>

<body  onmousedown="return false">

<table  class="rootbox" width="100%" border="1" cellspacing="0" cellpadding="0"><tr><td class="highlight_title">so list                                           </td></tr></table>
<p>&nbsp;</p><p>&nbsp;</p>
<div class="php_enquiry_table_margin"><!--20110301-->
<table name="buttonBox" width="100%" border="1" cellspacing="0" cellpadding="0">

<tr>

<td align="right" cellspacing="0" cellpadding="0" ><input type="button"  class="btn" value="ok" onclick="checked_data(); winexit(_return_value); " onmouseover="this.className='btn btnhov'"  onmouseout="this.className='btn'" /><input type="button"  class="btn" value="exit" onclick="removerowfromtable();" onmouseover="this.className='btn btnhov'"  onmouseout="this.className='btn'" /></td>
 </tr>
</table>
<table  id="51647904" class="scrolltable" >
<thead class="fixedHeader"><tr>
<th id="choice"><span> </span></th>
<th id="PARTNO" style="display:display; width:1100px;"><span>物料編號</span></th>
<th id="qty" style="display:display; width:1000px;"><span>qty</span></th>
<th id="uom" style="display:display; width:400px;"><span>uom</span></th>
<th id="cur" style="display:display; width:400px;"><span>cur</span></th>
<th id="SO" style="display:none; width:1800px;"><span>銷售合約</span></th>
<th id="datetimer" style="display:none; width:1800px;"><span>header6</span></th>
<th id="prod_qty" style="display:display; width:150px;"><span>sumjobddate.qty</span></th>
<th id="_choice" ></th></tr></thead>
<tbody class="scrollContent">
<?php
$mode=1;
for ($i=0;$i<count($datetimer);$i++)
{?>
<tr  onClick="thisrecno('<?php echo $i;?>');" class="row"  onDblClick="winexit('<?php echo "<datetimer>".$datetimer[$i]."</datetimer>"."<PARTNO>".$PARTNO[$i]."</PARTNO>"."<qty>".$qty[$i]."</qty>"."<uom>".$uom[$i]."</uom>"."<cur>".$cur[$i]."</cur>"."<SO>".$SO[$i]."</SO>"."<datetimer>".$datetimer[$i]."</datetimer>"."<prod_qty>".$prod_qty[$i]."</prod_qty>";?>');" >
<th headers="CHOICE"><input type="checkbox"  width="40" onclick='_checked_data( "choice_<?php echo $i;?>" );' name="checkbox" id="choice_<?php echo $i;?>" /></th>
<td headers="partno" style="display:display; width:1100px;" class="row"  id="partno<?php echo $i;?>" title="<?php echo $partno[$i];?>" ><?php echo $partno[$i];?></td>
<td headers="qty" style="display:display; width:1000px;"  class="CSS_Line_Normal_Number_Format"  id="qty<?php echo $i;?>" title="<?php echo $qty[$i];?>" ><?php echo $qty[$i];?></td>
<td headers="uom" style="display:display; width:400px;" class="row"  id="uom<?php echo $i;?>" title="<?php echo $uom[$i];?>" ><?php echo $uom[$i];?></td>
<td headers="cur" style="display:display; width:400px;" class="row"  id="cur<?php echo $i;?>" title="<?php echo $cur[$i];?>" ><?php echo $cur[$i];?></td>
<td headers="so" style="display:none; width:1800px;" class="row"  id="so<?php echo $i;?>" title="<?php echo $so[$i];?>" ><?php echo $so[$i];?></td>
<td headers="datetimer" style="display:none; width:1800px;" class="row"  id="datetimer<?php echo $i;?>" title="<?php echo $datetimer[$i];?>" ><?php echo $datetimer[$i];?></td>
<td headers="prod_qty" style="display:display; width:150px;"  class="CSS_Line_Normal_Number_Format"  id="prod_qty<?php echo $i;?>" title="<?php echo $prod_qty[$i];?>" ><?php echo $prod_qty[$i];?></td>
<td headers="_CHOICE" ><input type="checkbox" name="checkbox" id="_choice_<?php echo $i;?>" /></td>
</tr>
<?php }?>
 </tbody>
</table>
<script type="text/javascript">if(typeof tableScroll == "function"){tableScroll("51647904");var myTable = new SortedTable("51647904");}</script>  <div id=SOB_footer></div>
</div><!--20110301-->
</body></html>

沒有留言:

張貼留言