function decimal_not_zero(){

	var element = document.getElementById("decimal").value;
	
	if(element == 0){
	element = element.replace(0,1);
	document.getElementById("decimal").value = element;
	}
	
	 

}

function Popup(fullurl) {
window.open( fullurl, "myWindow", 
"status = 1, height = 600, width = 700, resizable = 0" )
}

function Popup2(fullurl) { 
window.open( fullurl, "myWindow", 
"status = 1, height = 200, width = 200, resizable = 0" )
}

function popitup(url) {
	newwindow=window.open(url,'name','height=450,width=600');
	if (window.focus) {newwindow.focus()}
	return false;
}

function checkIt(evt) {
    evt = (evt) ? evt : window.event
    var charCode = (evt.which) ? evt.which : evt.keyCode
    if (charCode > 31 && (charCode < 48 || charCode > 57)) {
        status = "This field accepts numbers only."
        return false
    }
    status = ""
    return true
}

function submitenter(myfield,e)
{
var keycode;
if (window.event) keycode = window.event.keyCode;
else if (e) keycode = e.which;
else return true;

if (keycode == 13)
   {
   myfield.form.submit();
   return false;
   }
else
   return true;
}


function startCalc(){
interval = setInterval("calc()",1);

}
function calc(){ 
 
 if(document.add_listing.Price.value == '0'){
	 
	 document.add_listing.Price.value = 1;
	 
 } 
 
 


}
function stopCalc(){
clearInterval(interval);
}
