
function isNumeric(form_value) { 
    if (form_value.match(/^\d+$/) == null) 
        return false; 
    else 
        return true; 
}

/**
 * return a alias of the given string
 * exp: "I m a string" -> "i-m-a-string"; 
 * @param text
 * @return
 */
function toAlias(text) {
	var nt = text;
	var st = " ";
	var coma = "'";
	while(nt.indexOf(st) != -1 || nt.indexOf(coma) != -1){
		nt = nt.replace( st, "-" );
		nt = nt.replace( coma, "-" );
	}
	return nt.toLowerCase();
}

function removeItem(arg){
	//alert('removeItem code_nr= ' + arg[0]);
	window.location="http://celly.nl/admin/index.php?content=product_delete&product_no=" + arg[0];
}
