scHeight = screen.availHeight / 2;
scWidth = screen.availWidth / 2;
function OpenChk(url,w,h){
pos_top = scHeight - (h / 2);
pos_left = scWidth - (w / 2);
window.open(url,'Check','top='+pos_top+',left='+pos_left+',width='+w+',height='+h);
return false;
}
function CheckIt() {
var obj_id = document.getElementById("article");
var obj_title = document.getElementById("title");
var obj_author = document.getElementById("author");
if (obj_id.value.length < 1){///////Total Message/////
alert("Article is invalid!");
obj_id.focus();
return false;
}
else if (obj_name.value.length < 1){///////Total Message/////
alert("Title is invalid!");
obj_name.focus();
return false;
}
else if (obj_company.value.length < 1){///////Total Message/////
alert("Author is invalid!");
obj_company.focus();
return false;
}
}
function KnowHowClick(obj_name){
var obj = document.getElementById(obj_name);
var obj_txt = document.getElementById(obj_name+"_txt");
if(obj.checked == true){
obj_txt.disabled = false;
obj_txt.value = "";
obj_txt.focus();
}
else {
obj_txt.disabled = true;
}
}