<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://w...content-available-to-author-only...3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Wafer Checks</title>
<script type='text/javascript' src='https://a...content-available-to-author-only...s.com/ajax/libs/jquery/1.7.1/jquery.min.js'></script>
<script type='text/javascript'>
$(document).ready(function() {
$('#chkCheckAll').click(function(){$('.chkDelete').attr('checked',this.checked);});
$('.chkDelete').click(function(){$('#chkCheckAll').attr("checked",!($('.chkDelete:not(:checked)').length));});
});
</script>
</head>
<body bgcolor="#e2e2e2">
<center>
<br>
<h1>Bob D Wafer Checks</h1>
<script language="JavaScript">
var selectedchkboxes = new Array();
function selected_checkbox(id){
if(document.getElementById(id).checked){
selectedchkboxes.push(id);}
}
function jsfunction(){
<html><body><h1>HIIII</h1></body></html>
}
/*
redirects to the check webpage based on user selection
*/
function remove_dups(arrayName){
var newArray = new Array();
label:for(var i=0; i<arrayName.length; i++ ){
for(var j=0; j<newArray.length;j++ ){
if(newArray[j]==arrayName[i]){
continue label;
}
}
newArray[newArray.length] = arrayName[i];
}
return newArray;
}
function win_open() {
/*if(document.getElementById("chkMaskCompare").checked){
window.open("http://f...content-available-to-author-only...m.com/chkdev/maskcompare.php?submit=true&ecnum=10000N03402");
}
if(document.getElementById("chkFeatureCompare").checked){
window.open("http://f...content-available-to-author-only...m.com/chkdev/eclook.php?submit=true&ecnum=10000N03402");
}
if((!document.getElementById("chkMaskCompare").checked)&&(!document.getElementById("chkFeatureCompare").checked)&&(!document.getElementById("chkPORCompare").checked)){
alert("Atleast 1 check should be selected");
}*/
var arr = new Array();
arr = remove_dups(selectedchkboxes);
for (var i = 0; i < arr.length; i++) {
switch(arr[i]){
case "chkMaskCompare":
if(document.getElementById("chkMaskCompare").checked)
window.open("http://f...content-available-to-author-only...m.com/chkdev/maskcompare.php?submit=true&ecnum=10000N03402");
break;
case "chkFeatureCompare":
if(document.getElementById("chkFeatureCompare").checked)
window.open("http://f...content-available-to-author-only...m.com/chkdev/eclook.php?submit=true&ecnum=10000N03402");
break;
default:
//alert("Invalid id");
}
}
}
function change_color(id) {
document.getElementById(id).style.color="red";
}
function change_color_back(id) {
document.getElementById(id).style.color="purple";
}
</script>
<table id="tab1" border="1" width="838" height="210">
<tbody>
<tr>
<td height="39" width="20"><input type="checkbox"
name="chkCheckAll" id="chkCheckAll" ></td>
<td height="39" width="170"><b><center><font size="4"> Check Name</font></center></b></td>
<td height="39" width="389"><b><center><font size="4"> Status</font></center></b></td>
<td height="39" width="252"><b><center><font size="4"> Preset Groups</font></center></b></td>
</tr>
<tr>
<td width="20" height="48"><input type="checkbox"
name="chkMaskCompare" id="chkMaskCompare" class="chkDelete" onclick="selected_checkbox(this.id);"></td>
<td width="170" height="48"><center><font size="4"> Mask Compare</font></center></td>
<td width="389" height="48"><a href="http://w...content-available-to-author-only...s.com/" id="det1" title="Displays last Run details" target="_blank" onmouseover="change_color(id)" onmouseout="change_color_back(id)"><font size="4">details</font></a>  <label id="l1" ><font size="4">Run OK since last change</font></label></td>
<td rowspan="3" width="252"><center>
<input type="button" id="btnDefaultChecks" value="Default Checks" style="width:200px;height:27px"
onclick="doPreset(this.id);"><br><br>
<input type="button" id="btnMandFCompare"
value="Mask and Feature Compare" style="width:200px;height:27px" onclick="doPreset(this.id);">
<br><br>
<input type="button" id="btnFandPCompare"
value="Feature and POR Compare" style="width:200px;height:27px" onclick="doPreset(this.id);"><br><br>
<input type="button" id="btnPORCompare" value="POR Compare" style="width:200px;height:27px"
onclick="doPreset(this.id);"></center></td>
</tr>
<tr>
<td width="20" height="56"><input type="checkbox"
name="chkFeatureCompare" id="chkFeatureCompare" class="chkDelete" onclick="selected_checkbox(this.id);"></td>
<td width="170" height="56"><center><font size="4"> Feature Compare</font></center></td>
<td width="389" height="56"><a href="http://w...content-available-to-author-only...s.com/" id="det2" title="Displays last Run details" target="_blank" onmouseover="change_color(id)" onmouseout="change_color_back(id)"><font size="4">details</font></a>  <label><font size="4">Run OK, but not since last change</font></label></td>
</tr>
<tr>
<td width="20" height="54"><input type="checkbox"
name="chkPORCompare" id="chkPORCompare" class="chkDelete"></td>
<td width="170" height="54"><center><font size="4"> POR Compare</font></center></td>
<td width="389" height="54"><a href="file:///C:/Documents%20and%20Settings/Administrator/My%20Documents/SametimeFileTransfers/output.html" id="det3" title="Displays last Run details" target="_blank" onmouseover="change_color(id)" onmouseout="change_color_back(id)"><font size="4">details</font></a>  <label><font size="4">Run errors</font></label></td>
</tr>
</tbody>
</table>
<br>
<p><input type="submit" name="Submit" value="Submit" readonly
style="position: absolute; left: 655px; top: 350px; width: 59px"
width="59" onclick="win_open()">
<input type="submit" name="Cancel" value="Cancel" readonly
style="position: absolute; left: 739px; top: 350px; width: 62px"
width="59" onclick="window.close()"></p>
<br>
<br>
<label><font color="purple">*Select the checks you want to run and click Submit</font></label>
</center>
<script language="JavaScript">
/*if(document.getElementById("chkCheckAll").checked){
var table = document.getElementById("tab1");
var tableInputTags = table.getElementsByTagName("input");
var checkboxArray = [];
for (var i=0; i<tableInputTags.length; i++)
{
if(tableInputTags[i].type=="checkbox")
{
checkboxArray.push(tableInputTags[i].id);
}
}
for(var j=0; i<checkboxArray.length; j++)
{
var val = "chk"+checkboxArray[i];
document.getElementById(val).checked = true;
}
}*/
var table = document.getElementById("tab1");
var tableInputTags = table.getElementsByTagName("input");
var checkboxArray = [];
for (var i=0; i<tableInputTags.length; i++)
{
if(tableInputTags[i].type=="checkbox")
{
checkboxArray.push(tableInputTags[i].id);
}
}
/*
enables the checkboxes based on which preset
group was selected
*/
function doPreset(thisObj) {
var vChecks = "";
//var compareChecks = ["chkMaskCompare","chkPORCompare","chkFeatureCompare","chkCheckAll"];
var compareChecks = checkboxArray.slice();
if(thisObj == "btnDefaultChecks") {
vChecks = "MaskCompare,PORCompare";
} else if(thisObj == "btnMandFCompare") {
vChecks = "MaskCompare,FeatureCompare";
} else if(thisObj == "btnFandPCompare") {
vChecks = "FeatureCompare,PORCompare";
} else if(thisObj == "btnPORCompare") {
vChecks = "PORCompare";
}
var aChecks = new Array();
aChecks = vChecks.split(",");
for (var i = 0; i < aChecks.length; i++) {
var value = "chk"+aChecks[i];
var index = compareChecks.indexOf(value);
compareChecks.splice(index,1);
document.getElementById(value).checked = true;
selected_checkbox(value);
}
for (var j = 0; j < compareChecks.length; j++){
var val = compareChecks[j];
document.getElementById(val).checked = false;
}
}
</script>
</body>
</html>