var targetwindow;
function savehiddenparam(ctrl){
	document.forms['frm_sitsproductwatchlist']['actionparam'].value = ctrl.name + ctrl.value;
	window.alert(document.forms['frm_sitsproductwatchlist']['actionparam'].value);
}

function FillMail(target , message , targetId) {
                targetwindow  = window.open(target, 'Produktdanfrage');
	targetwindow.focus();
	setTimeout("setValue('" +  targetId + "','" + message+ "')" ,400); 

}

function Fill_Message_In_Mail(message , ctrlId) {
	var ctrl = new getObj(ctrlId);
	if(typeof(ctrl) == 'object' || typeof(ctrl) == 'function') {
		ctrl.obj.value = message;
	}
}


 function getObj(name){
      if (document.getElementById)
      {
        this.obj = document.getElementById(name);
        this.style = document.getElementById(name).style;
      }
      else if (document.all)
      {
        this.obj = document.all[name];
        this.style = document.all[name].style;
      }
      else if (document.layers)
      {
        this.obj = document.layers[name];
        this.style = document.layers[name];
      }
 }
