/*//////////////////// piichi core.js [101117] */


/*//////////////////// popUp */

function openLinkPopup(wUrl,wWidth,wHeight){
	var wObj;
	var winName = Math.round(Math.random()*1000);
	scWidthCenter = screen.availWidth / 2;
	scHeightCenter = screen.availHeight / 2;
	wOption =
	"toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width="
	+ wWidth + ",height=" + wHeight + ",left=" + (scWidthCenter - (wWidth /
	2)) + ",top=" + (scHeightCenter - (wHeight / 2));
	wObj = window.open(wUrl,winName,wOption);
	wObj.focus();
}

/*//////////////////// mailTo */

function getMailto(user,domain,subject, message){
	locationstring = "mailto:" + user + "@" + domain + "?subject=" + subject +  "&body=" + message;
	window.location = locationstring;
}


/*//////////////////// stripeTable */

window.onload = function() {
  var tbl = document.getElementsByTagName("table");
  for (var i = 0; i < tbl.length; i++) {
	if (tbl[i].className == "tb_stripe") {
	  stripeTable(tbl[i]);
	}
  }
}

function stripeTable(t) {
  for (var i = 0; i < t.rows.length; i++) {
	if ( i % 2 == 0) { t.rows[i].className = "stripe" }
  }
}
