function popupPage1() {
var page = "help.html";
windowprops = "height=600,width=500,scrollbars=yes";
window.open(page, "NewWindow", windowprops);
}

function calpopup(lnk) { 
window.open(lnk, "calendar","height=250,width=250,scrollbars=no")
} 

function CheckLength(s) {
	if (s.length > 1) {
		alert (" You entered " + s.length + " characters into the Disciplines textbox, you must shorten your entry!")
	}
} 

function validNUM(string) {
    for (var i=0, output='', valid="1234567890"; i<string.length; i++)
       if (valid.indexOf(string.charAt(i)) != -1)
          output += string.charAt(i)
    return output;
} 


function validateNews() {
	if ((document.news.Title.value=="")||
	(document.news.Summary.value=="")||
	(document.news.Article.value=="")||
	(document.news.date.value==""))
	{
		alert ("You must fill in all of the required .fields!")
		return false;
	}
}

function validateProduct() {
	if ((document.product.sku.value=="")||
	(document.product.title.value=="")||
	(document.product.description2.value=="")||
	(document.product.description1.value==""))
	{
		alert ("You must fill in all of the required .fields!")
		return false;
	}
}

