// JavaScript Document

function sub_fun()

{

	var frm = document.paypal_form;

	/*if(frm.bikecolor.value != '' && frm.os1.value != '')

	{*/

		if(frm.os1.value == 'no'){

			frm.os0.value = frm.pdt_name.value+'-no';

		}else{

			frm.os0.value = frm.pdt_name.value+'-yes';

		}

		frm.os2.value = frm.bikecolor.value;

	//}

	return true; 

}

function printPreview(node,site_url,doc_path,site_name){

	//var node_contnt = document.getElementById('node');

  var content=node.innerHTML;

  var pwin=window.open('','print_content','width=900,height=900,scrollbars=yes,resizable=yes');



  pwin.document.open();

  //pwin.document.write('<html><head><link href=\"".$this->site_url."index.php?mod=".$this->doc_path."&showstyle=yes\" rel=\"stylesheet\" type=\"text/css\" /></head><body onload=\"window.print()\">".$this->site_name."'+content+'</body></html>');

  pwin.document.write('<html><head><link href=\"'+site_url+'style/nav.css\" rel=\"stylesheet\" type=\"text/css\" /><link href=\"'+site_url+'style/global.css\" rel=\"stylesheet\" type=\"text/css\" /><link href=\"'+site_url+'index.php?mod='+doc_path+'&showstyle=yes\" rel=\"stylesheet\" type=\"text/css\" /></head><body onload=\"window.print()\">'+content+'</body></html>');

  pwin.document.close();

}

function printSelection(node,site_url,doc_path,site_name){

	//var node_contnt = document.getElementById('node');

  var content=node.innerHTML;

  var pwin=window.open('','print_content','width=150,height=150');



  pwin.document.open();

  //pwin.document.write('<html><head><link href=\"".$this->site_url."index.php?mod=".$this->doc_path."&showstyle=yes\" rel=\"stylesheet\" type=\"text/css\" /></head><body onload=\"window.print()\">".$this->site_name."'+content+'</body></html>');

  pwin.document.write('<html><head><link href=\"style/nav.css\" rel=\"stylesheet\" type=\"text/css\" /><link href=\"'+site_url+'index.php?mod='+doc_path+'&showstyle=yes\" rel=\"stylesheet\" type=\"text/css\" /></head><body >'+content+'</body></html>');

  pwin.document.close();

  

  setTimeout(function(){pwin.close();},1000);

}