function getElement(id) {
	return (document.getElementById)? document.getElementById(id): (document.all)? document.all[id]: (document.layers)? document.layers[id]: null;
}

function formatRequired(id,field) {
	var obj = getElement('title_'+id+'_'+field);
	obj.innerHTML = '<b>*'+field.capitalize()+'</b>:';
}
String.prototype.capitalize = function(){ //v1.0
    return this.replace(/\w+/g, function(a){
        return a.charAt(0).toUpperCase() + a.substr(1).toLowerCase();
    });
};

function popWindow(url,name,width,height,scrollbars){
	popWindow_n = window.open(url,name,"left=20,top=20,screenX=20,screenY=20,menubar=false,location=false,scrollbars=" + (scrollbars ? "yes" : "false") + ",toolbar=false,width=" + width + ",height=" + height + ",status=false,resizable=0");
	popWindow_n.focus();
}