﻿String.prototype.IsNumeric = function() {return /^\d{1,3}(,\d{3})*$/g.test(this)}

function GoToPage(Page) {
	var Frm = document.forms[0];
	Frm.action = './PriceConsulting.aspx?page=' + Page;
	Frm.submit();
	return false
}
function CheckValidation(Fld) {
	if (Fld.value != '' && !Fld.value.IsNumeric()) {
		alert('(فرم قیمت را درست وارد کنید (مثال: 285,000');
		Fld.focus();
		Fld.select();
	}
}
function ShowPrice(PhoneID, WarrantyID) {
	window.open('/Phones/PriceChart.aspx?phone=' + PhoneID + '&warranty=' + WarrantyID, 'Price', 'location=0,, menubar=0, resizable=0, scrollbars=0, toolbar=0, status=0, width=1280px');
	return false
}