function growup(obj){
	var val = new Number(obj.rows);
	var key = event.keyCode;
	
    if (event.keyCode==13) { 
		obj.rows = val+1;
	}	
}

function clear_content(obj){
	var text = obj.value;
	if(text.length < 40){
		obj.value='';
	}
}

////////////////////////////////
function move(source,dest){
	
	var num = new String(source);
	if(num.length > 2){
		dest.focus();
	}
}

function show_postit(ins){
	var url= "/postit.php?ins="+ins;   
	var win_status = window.open(url,'notes','toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,dependent=no,screenX=0,screenY=0,width=600,height=400');
	win_status.focus(); 
}	
	
	
	function show_technotes(id_product){
		var url= "show_technotes.php?p="+id_product;   
		var win_status = window.open(url,'notes','toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,dependent=no,screenX=0,screenY=0,width=300,height=300');
		win_status.focus(); 
	}		
	
	
	function open_standards(){
		var url= "/standards.php";  
		var win_status = window.open(url,'notes','toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,dependent=no,screenX=0,screenY=0,width=515,height=500');
		win_status.focus();	
	}	

	function open_docs(){
		var url= "/instalation_notes.php";  
		var win_status = window.open(url,'notes','toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,dependent=no,screenX=0,screenY=0,width=515,height=500');
		win_status.focus();	
	}	
function openSpellChecker() {
	
	// example 1. 
	// Pass in the text inputs or textarea inputs that you 
	// want to spell-check to the object's constructor,
	// then call the openChecker() method.
	/*
	var text1 = document.form1.text1;
	var textarea1 = document.form1.textarea1;
	var speller = new spellChecker( text1, textarea1 );
	speller.openChecker();
	*/
	// example 2.
	// Rather than passing in the form elements to the object's
	// constructor, populate the object's textInputs property,
	// then call the openChecker() method.
	/*
	var speller = new spellChecker();
	var spellerInputs = new Array();
	for( var i = 0 ; i < document.form1.elements.length; i++ ) {
		if( document.form1.elements[i].type.match( /^text/ )) {
			spellerInputs[spellerInputs.length] = document.form1.elements[i];
		}
	}
	speller.textInputs = spellerInputs;
	speller.openChecker();
	*/

	// example 3.
	// use the spellCheckAll() method to check every text input
	// and textarea input in every form in the HTML document.
	// You can also use the checkTextBoxes() method or checkTextAreas()
	// method instead of spellCheckAll() to check only text inputs
	// or textarea inputs, respectively
	
	var speller = new spellChecker();
	speller.spellCheckAll();
	
}	