// JavaScript Document

function showlink(){
  check=document.getElementById('links').style.visibility;
  if (check=="hidden")
      document.getElementById('links').style.visibility="visible";
    else document.getElementById('links').style.visibility="hidden";
}


var table = "mp";
function display_view(on, off,ppidtemp) {
 if (on && document.getElementById(on)) {
 document.getElementById(on).style.display="inline";
 document.getElementById(ppidtemp).style.color="#CC0000";
 }
 if (off && document.getElementById(off)) {
 document.getElementById(off).style.display="none";
 off = off + "_t";
 document.getElementById(off).style.color="#000000";
 }
}
function setPrice(form,ppid,ppidtemp) {
 var paper_id = "";


 paper_id = ppid;

 display_view("", table,ppidtemp);
 if (paper_id!="") {
 table = paper_id;
 display_view(table, "",ppidtemp);
 }
}



function toestimate(){
		
	
	
}

function sousin(obj){
	alert("aa");
	//alert(document.forms[1].name);
	document.forms[1].submit();
	obj.submit();
}


var table1  = "mp-ramioff";
function display_view1(on, off) {
    if (on && document.getElementById(on)) {
        document.getElementById(on).style.display="inline";
    }
    if (off && document.getElementById(off)) {
        document.getElementById(off).style.display="none";
    }
}
function set_Price(form) {
    var ppid = "0";
    var clid = "0";
    var pgid = "0";
    if (form.paper_id) {;
        ppid = form.paper_id[form.paper_id.selectedIndex].value;
    }
    if (form.color_id) {;
        clid = form.color_id[form.color_id.selectedIndex].value;
    }

    display_view1("", table1);
    if (ppid!="" && clid!="") {
        table1 = ppid+"-"+clid;
        display_view1(table1, "");
    }
}

// end
