function IsNumeric(PossibleNumber) {	
	var PNum = new String(PossibleNumber);	
	var regex = /[^0-9]/;	
	return !regex.test(PNum);
}

function LargerImageView(strImage, strTitle) {
    PopupWindow(strImage, strTitle, 625, 625, 'no');
}

function LaunchTellAFriend(strURL, strTitle) {
    PopupWindow(strURL, strTitle, 450, 575, 'no');
}

function VideoPopup(strImage, strTitle) {
    PopupWindow(strImage, strTitle, 675, 450, 'no');
}

function PopupWindow(strURL, strTitle, intWidth, intHeight, blnResizable) {
    var strOptions = 'width=' + intWidth + ',height=' + intHeight + ',resizeable=' + blnResizable;
    window.open(strURL, strTitle, strOptions);
}

function DisplayBackorder(ddl, lbl) {
    var label = $get(lbl);
    var size = ddl.options[ddl.selectedIndex];
    label.innerHTML = size.title;
}

function Center(bottom, top) {
    var location = $common.getLocation(bottom);
    var bsize = $common.getSize(bottom);
    var tsize = $common.getSize(top);
    //window.alert(location.y); window.alert(location.x); window.alert(bsize.height); window.alert(bsize.width); window.alert(tsize.height); window.alert(tsize.width);
    location.y = parseInt((location.y + (bsize.height / 2) - (tsize.height / 2)));
    location.x = parseInt((location.x + (bsize.width / 2) - (tsize.width / 2)));
    $common.setLocation(top, location);
}