function CheckUrl(a) {
var falg = true;
var regstr = /^http(s)?://([w-]+.)+[w-]+(/[w- ./?%&=]*)?$/;
//var reg = new RegExp("^http(s)?://([w-]+.)+[w-]+(/[w- ./?%&=]*)?$");
var value = $(a).val();
if (value != "") {
if (!regstr.test(value)) {
falg = false;
}
}
}