$(document).ready(function(){ // ------ FORM SCHELLENBERG ----------------- // =============== // Uploadify application - justification // =============== $( '.uploadfile_justification' ).click(function(){ if ( $(this).val() ) { //window.open( '../../data/career/' + $(this).val() ); } }); $( '.uploadfile_justificationbtn' ).uploadify({ 'uploader' : '../layout/jquery/uploadify/uploadify.swf', 'script' : 'upload_script.php?type=justification_', 'checkScript' : 'upload_check.php?type=justification_', 'cancelImg' : '../layout/jquery/uploadify/cancel.png', 'buttonImg' : '../layout/jquery/uploadify/browse.gif', 'width' : '60', 'height' : '19', 'multi' : false, 'auto' : true, onComplete : function( event, queueID, fileObj, response, data ) { result = response.substring(0,1); filename = response.substring(2,response.length); if ( result == '1' ) { $('input[type=text]', $(event.currentTarget).parent() ).val( filename ); } else { alert( response ); } } }); // =============== // Uploadify application - cv // =============== $( '.uploadfile_cv' ).click(function(){ if ( $(this).val() ) { //window.open( '../../data/career/' + $(this).val() ); } }); $( '.uploadfile_cvbtn' ).uploadify({ 'uploader' : '../layout/jquery/uploadify/uploadify.swf', 'script' : 'upload_script.php?type=cv_', 'checkScript' : 'upload_check.php?type=cv_', 'cancelImg' : '../layout/jquery/uploadify/cancel.png', 'buttonImg' : '../layout/jquery/uploadify/browse.gif', 'width' : '60', 'height' : '19', 'multi' : false, 'auto' : true, onComplete : function( event, queueID, fileObj, response, data ) { result = response.substring(0,1); filename = response.substring(2,response.length); if ( result == '1' ) { $('input[type=text]', $(event.currentTarget).parent() ).val( filename ); } else { alert( response ); } } }); // =============== // Uploadify application - workdetails // =============== $( '.uploadfile_workdetails' ).click(function(){ if ( $(this).val() ) { //window.open( '../../data/career/' + $(this).val() ); } }); $( '.uploadfile_workdetailsbtn' ).uploadify({ 'uploader' : '../layout/jquery/uploadify/uploadify.swf', 'script' : 'upload_script.php?type=workdetails_', 'checkScript' : 'upload_check.php?type=workdetails_', 'cancelImg' : '../layout/jquery/uploadify/cancel.png', 'buttonImg' : '../layout/jquery/uploadify/browse.gif', 'width' : '60', 'height' : '19', 'multi' : false, 'auto' : true, onComplete : function( event, queueID, fileObj, response, data ) { result = response.substring(0,1); filename = response.substring(2,response.length); if ( result == '1' ) { $('input[type=text]', $(event.currentTarget).parent() ).val( filename ); } else { alert( response ); } } }); // =============== // Uploadify application - listwork // =============== $( '.uploadfile_listwork' ).click(function(){ if ( $(this).val() ) { //window.open( '../../data/career/' + $(this).val() ); } }); $( '.uploadfile_listworkbtn' ).uploadify({ 'uploader' : '../layout/jquery/uploadify/uploadify.swf', 'script' : 'upload_script.php?type=listwork_', 'checkScript' : 'upload_check.php?type=listwork_', 'cancelImg' : '../layout/jquery/uploadify/cancel.png', 'buttonImg' : '../layout/jquery/uploadify/browse.gif', 'width' : '60', 'height' : '19', 'multi' : false, 'auto' : true, onComplete : function( event, queueID, fileObj, response, data ) { result = response.substring(0,1); filename = response.substring(2,response.length); if ( result == '1' ) { $('input[type=text]', $(event.currentTarget).parent() ).val( filename ); } else { alert( response ); } } }); // =============== // Uploadify application - abstract // =============== $( '.uploadfile_abstract' ).click(function(){ if ( $(this).val() ) { //window.open( '../../data/career/' + $(this).val() ); } }); $( '.uploadfile_abstractbtn' ).uploadify({ 'uploader' : '../layout/jquery/uploadify/uploadify.swf', 'script' : 'upload_script.php?type=abstract_', 'checkScript' : 'upload_check.php?type=abstract_', 'cancelImg' : '../layout/jquery/uploadify/cancel.png', 'buttonImg' : '../layout/jquery/uploadify/browse.gif', 'width' : '60', 'height' : '19', 'multi' : false, 'auto' : true, onComplete : function( event, queueID, fileObj, response, data ) { result = response.substring(0,1); filename = response.substring(2,response.length); if ( result == '1' ) { $('input[type=text]', $(event.currentTarget).parent() ).val( filename ); } else { alert( response ); } } }); // =============== // Uploadify application - other // =============== $( '.uploadfile_other' ).click(function(){ if ( $(this).val() ) { //window.open( '../../data/career/' + $(this).val() ); } }); $( '.uploadfile_otherbtn' ).uploadify({ 'uploader' : '../layout/jquery/uploadify/uploadify.swf', 'script' : 'upload_script.php?type=other_', 'checkScript' : 'upload_check.php?type=other_', 'cancelImg' : '../layout/jquery/uploadify/cancel.png', 'buttonImg' : '../layout/jquery/uploadify/browse.gif', 'width' : '60', 'height' : '19', 'multi' : false, 'auto' : true, onComplete : function( event, queueID, fileObj, response, data ) { result = response.substring(0,1); filename = response.substring(2,response.length); if ( result == '1' ) { $('input[type=text]', $(event.currentTarget).parent() ).val( filename ); } else { alert( response ); } } });// =============== // Uploadify application - other // =============== $( '.uploadfile_publi1' ).click(function(){ if ( $(this).val() ) { //window.open( '../../data/publi/' + $(this).val() ); } }); $( '.uploadfile_publi1btn' ).uploadify({ 'uploader' : '../layout/jquery/uploadify/uploadify.swf', 'script' : 'upload_script.php?type=publi_', 'checkScript' : 'upload_check.php?type=publi_', 'cancelImg' : '../layout/jquery/uploadify/cancel.png', 'buttonImg' : '../layout/jquery/uploadify/browse.gif', 'width' : '60', 'height' : '19', 'multi' : false, 'auto' : true, onComplete : function( event, queueID, fileObj, response, data ) { result = response.substring(0,1); filename = response.substring(2,response.length); if ( result == '1' ) { $('input[type=text]', $(event.currentTarget).parent() ).val( filename ); } else { alert( response ); } } });// =============== // Uploadify application - other // =============== $( '.uploadfile_publi2' ).click(function(){ if ( $(this).val() ) { //window.open( '../../data/publi/' + $(this).val() ); } }); $( '.uploadfile_publi2btn' ).uploadify({ 'uploader' : '../layout/jquery/uploadify/uploadify.swf', 'script' : 'upload_script.php?type=publi_', 'checkScript' : 'upload_check.php?type=publi_', 'cancelImg' : '../layout/jquery/uploadify/cancel.png', 'buttonImg' : '../layout/jquery/uploadify/browse.gif', 'width' : '60', 'height' : '19', 'multi' : false, 'auto' : true, onComplete : function( event, queueID, fileObj, response, data ) { result = response.substring(0,1); filename = response.substring(2,response.length); if ( result == '1' ) { $('input[type=text]', $(event.currentTarget).parent() ).val( filename ); } else { alert( response ); } } });// =============== // Uploadify application - other // =============== $( '.uploadfile_publi3' ).click(function(){ if ( $(this).val() ) { //window.open( '../../data/publi/' + $(this).val() ); } }); $( '.uploadfile_publi3btn' ).uploadify({ 'uploader' : '../layout/jquery/uploadify/uploadify.swf', 'script' : 'upload_script.php?type=publi_', 'checkScript' : 'upload_check.php?type=publi_', 'cancelImg' : '../layout/jquery/uploadify/cancel.png', 'buttonImg' : '../layout/jquery/uploadify/browse.gif', 'width' : '60', 'height' : '19', 'multi' : false, 'auto' : true, onComplete : function( event, queueID, fileObj, response, data ) { result = response.substring(0,1); filename = response.substring(2,response.length); if ( result == '1' ) { $('input[type=text]', $(event.currentTarget).parent() ).val( filename ); } else { alert( response ); } } });// =============== // Uploadify application - other // =============== $( '.uploadfile_publi4' ).click(function(){ if ( $(this).val() ) { //window.open( '../../data/publi/' + $(this).val() ); } }); $( '.uploadfile_publi4btn' ).uploadify({ 'uploader' : '../layout/jquery/uploadify/uploadify.swf', 'script' : 'upload_script.php?type=publi_', 'checkScript' : 'upload_check.php?type=publi_', 'cancelImg' : '../layout/jquery/uploadify/cancel.png', 'buttonImg' : '../layout/jquery/uploadify/browse.gif', 'width' : '60', 'height' : '19', 'multi' : false, 'auto' : true, onComplete : function( event, queueID, fileObj, response, data ) { result = response.substring(0,1); filename = response.substring(2,response.length); if ( result == '1' ) { $('input[type=text]', $(event.currentTarget).parent() ).val( filename ); } else { alert( response ); } } });// =============== // Uploadify application - other // =============== $( '.uploadfile_publi5' ).click(function(){ if ( $(this).val() ) { //window.open( '../../data/publi/' + $(this).val() ); } }); $( '.uploadfile_publi5btn' ).uploadify({ 'uploader' : '../layout/jquery/uploadify/uploadify.swf', 'script' : 'upload_script.php?type=publi_', 'checkScript' : 'upload_check.php?type=publi_', 'cancelImg' : '../layout/jquery/uploadify/cancel.png', 'buttonImg' : '../layout/jquery/uploadify/browse.gif', 'width' : '60', 'height' : '19', 'multi' : false, 'auto' : true, onComplete : function( event, queueID, fileObj, response, data ) { result = response.substring(0,1); filename = response.substring(2,response.length); if ( result == '1' ) { $('input[type=text]', $(event.currentTarget).parent() ).val( filename ); } else { alert( response ); } } });// =============== // Uploadify application - other // =============== $( '.uploadfile_publi6' ).click(function(){ if ( $(this).val() ) { //window.open( '../../data/publi/' + $(this).val() ); } }); $( '.uploadfile_publi6btn' ).uploadify({ 'uploader' : '../layout/jquery/uploadify/uploadify.swf', 'script' : 'upload_script.php?type=publi_', 'checkScript' : 'upload_check.php?type=publi_', 'cancelImg' : '../layout/jquery/uploadify/cancel.png', 'buttonImg' : '../layout/jquery/uploadify/browse.gif', 'width' : '60', 'height' : '19', 'multi' : false, 'auto' : true, onComplete : function( event, queueID, fileObj, response, data ) { result = response.substring(0,1); filename = response.substring(2,response.length); if ( result == '1' ) { $('input[type=text]', $(event.currentTarget).parent() ).val( filename ); } else { alert( response ); } } });// ------ FORM RESEARCH --------------------- $('#form_applicant_birthdate').datepicker({ dateFormat: 'dd.mm.yy', changeMonth: true, changeYear: true, yearRange: '1900:2024' }); $('#form_applicant_co1_birthdate').datepicker({ dateFormat: 'dd.mm.yy', changeMonth: true, changeYear: true, yearRange: '1900:2024' }); $('#form_applicant_co2_birthdate').datepicker({ dateFormat: 'dd.mm.yy', changeMonth: true, changeYear: true, yearRange: '1900:2024' }); // =============== // Uploadify Research plan - cv // =============== $( '.uploadfile_applicantcv' ).click(function(){ if ( $(this).val() ) { //window.open( '../../data/career/' + $(this).val() ); } }); $( '.uploadfile_applicantcvbtn' ).uploadify({ 'uploader' : '../layout/jquery/uploadify/uploadify.swf', 'script' : 'upload_script.php?type=applicantcv_', 'checkScript' : 'upload_check.php?type=applicantcv_', 'cancelImg' : '../layout/jquery/uploadify/cancel.png', 'buttonImg' : '../layout/jquery/uploadify/browse.gif', 'width' : '60', 'height' : '19', 'multi' : false, 'auto' : true, onComplete : function( event, queueID, fileObj, response, data ) { result = response.substring(0,1); filename = response.substring(2,response.length); if ( result == '1' ) { $('input[type=text]', $(event.currentTarget).parent() ).val( filename ); } else { alert( response ); } } });;// =============== // Uploadify application - publi // =============== $( '.uploadfile_apppubli1' ).click(function(){ if ( $(this).val() ) { //window.open( '../../data/publi/' + $(this).val() ); } }); $( '.uploadfile_apppubli1btn' ).uploadify({ 'uploader' : '../layout/jquery/uploadify/uploadify.swf', 'script' : 'upload_script.php?type=apppubli_', 'checkScript' : 'upload_check.php?type=apppubli_', 'cancelImg' : '../layout/jquery/uploadify/cancel.png', 'buttonImg' : '../layout/jquery/uploadify/browse.gif', 'width' : '60', 'height' : '19', 'multi' : false, 'auto' : true, onComplete : function( event, queueID, fileObj, response, data ) { result = response.substring(0,1); filename = response.substring(2,response.length); if ( result == '1' ) { $('input[type=text]', $(event.currentTarget).parent() ).val( filename ); } else { alert( response ); } } });// =============== // Uploadify application - publi // =============== $( '.uploadfile_apppubli2' ).click(function(){ if ( $(this).val() ) { //window.open( '../../data/publi/' + $(this).val() ); } }); $( '.uploadfile_apppubli2btn' ).uploadify({ 'uploader' : '../layout/jquery/uploadify/uploadify.swf', 'script' : 'upload_script.php?type=apppubli_', 'checkScript' : 'upload_check.php?type=apppubli_', 'cancelImg' : '../layout/jquery/uploadify/cancel.png', 'buttonImg' : '../layout/jquery/uploadify/browse.gif', 'width' : '60', 'height' : '19', 'multi' : false, 'auto' : true, onComplete : function( event, queueID, fileObj, response, data ) { result = response.substring(0,1); filename = response.substring(2,response.length); if ( result == '1' ) { $('input[type=text]', $(event.currentTarget).parent() ).val( filename ); } else { alert( response ); } } });// =============== // Uploadify application - publi // =============== $( '.uploadfile_apppubli3' ).click(function(){ if ( $(this).val() ) { //window.open( '../../data/publi/' + $(this).val() ); } }); $( '.uploadfile_apppubli3btn' ).uploadify({ 'uploader' : '../layout/jquery/uploadify/uploadify.swf', 'script' : 'upload_script.php?type=apppubli_', 'checkScript' : 'upload_check.php?type=apppubli_', 'cancelImg' : '../layout/jquery/uploadify/cancel.png', 'buttonImg' : '../layout/jquery/uploadify/browse.gif', 'width' : '60', 'height' : '19', 'multi' : false, 'auto' : true, onComplete : function( event, queueID, fileObj, response, data ) { result = response.substring(0,1); filename = response.substring(2,response.length); if ( result == '1' ) { $('input[type=text]', $(event.currentTarget).parent() ).val( filename ); } else { alert( response ); } } });// =============== // Uploadify application - publi // =============== $( '.uploadfile_apppubli4' ).click(function(){ if ( $(this).val() ) { //window.open( '../../data/publi/' + $(this).val() ); } }); $( '.uploadfile_apppubli4btn' ).uploadify({ 'uploader' : '../layout/jquery/uploadify/uploadify.swf', 'script' : 'upload_script.php?type=apppubli_', 'checkScript' : 'upload_check.php?type=apppubli_', 'cancelImg' : '../layout/jquery/uploadify/cancel.png', 'buttonImg' : '../layout/jquery/uploadify/browse.gif', 'width' : '60', 'height' : '19', 'multi' : false, 'auto' : true, onComplete : function( event, queueID, fileObj, response, data ) { result = response.substring(0,1); filename = response.substring(2,response.length); if ( result == '1' ) { $('input[type=text]', $(event.currentTarget).parent() ).val( filename ); } else { alert( response ); } } });// =============== // Uploadify application - publi // =============== $( '.uploadfile_apppubli5' ).click(function(){ if ( $(this).val() ) { //window.open( '../../data/publi/' + $(this).val() ); } }); $( '.uploadfile_apppubli5btn' ).uploadify({ 'uploader' : '../layout/jquery/uploadify/uploadify.swf', 'script' : 'upload_script.php?type=apppubli_', 'checkScript' : 'upload_check.php?type=apppubli_', 'cancelImg' : '../layout/jquery/uploadify/cancel.png', 'buttonImg' : '../layout/jquery/uploadify/browse.gif', 'width' : '60', 'height' : '19', 'multi' : false, 'auto' : true, onComplete : function( event, queueID, fileObj, response, data ) { result = response.substring(0,1); filename = response.substring(2,response.length); if ( result == '1' ) { $('input[type=text]', $(event.currentTarget).parent() ).val( filename ); } else { alert( response ); } } });// =============== // Uploadify application - publi // =============== $( '.uploadfile_apppubli6' ).click(function(){ if ( $(this).val() ) { //window.open( '../../data/publi/' + $(this).val() ); } }); $( '.uploadfile_apppubli6btn' ).uploadify({ 'uploader' : '../layout/jquery/uploadify/uploadify.swf', 'script' : 'upload_script.php?type=apppubli_', 'checkScript' : 'upload_check.php?type=apppubli_', 'cancelImg' : '../layout/jquery/uploadify/cancel.png', 'buttonImg' : '../layout/jquery/uploadify/browse.gif', 'width' : '60', 'height' : '19', 'multi' : false, 'auto' : true, onComplete : function( event, queueID, fileObj, response, data ) { result = response.substring(0,1); filename = response.substring(2,response.length); if ( result == '1' ) { $('input[type=text]', $(event.currentTarget).parent() ).val( filename ); } else { alert( response ); } } });// =============== // Uploadify application - publi // =============== $( '.uploadfile_apppubli7' ).click(function(){ if ( $(this).val() ) { //window.open( '../../data/publi/' + $(this).val() ); } }); $( '.uploadfile_apppubli7btn' ).uploadify({ 'uploader' : '../layout/jquery/uploadify/uploadify.swf', 'script' : 'upload_script.php?type=apppubli_', 'checkScript' : 'upload_check.php?type=apppubli_', 'cancelImg' : '../layout/jquery/uploadify/cancel.png', 'buttonImg' : '../layout/jquery/uploadify/browse.gif', 'width' : '60', 'height' : '19', 'multi' : false, 'auto' : true, onComplete : function( event, queueID, fileObj, response, data ) { result = response.substring(0,1); filename = response.substring(2,response.length); if ( result == '1' ) { $('input[type=text]', $(event.currentTarget).parent() ).val( filename ); } else { alert( response ); } } });// =============== // Uploadify application - publi // =============== $( '.uploadfile_apppubli8' ).click(function(){ if ( $(this).val() ) { //window.open( '../../data/publi/' + $(this).val() ); } }); $( '.uploadfile_apppubli8btn' ).uploadify({ 'uploader' : '../layout/jquery/uploadify/uploadify.swf', 'script' : 'upload_script.php?type=apppubli_', 'checkScript' : 'upload_check.php?type=apppubli_', 'cancelImg' : '../layout/jquery/uploadify/cancel.png', 'buttonImg' : '../layout/jquery/uploadify/browse.gif', 'width' : '60', 'height' : '19', 'multi' : false, 'auto' : true, onComplete : function( event, queueID, fileObj, response, data ) { result = response.substring(0,1); filename = response.substring(2,response.length); if ( result == '1' ) { $('input[type=text]', $(event.currentTarget).parent() ).val( filename ); } else { alert( response ); } } });// =============== // Uploadify application - publi // =============== $( '.uploadfile_apppubli9' ).click(function(){ if ( $(this).val() ) { //window.open( '../../data/publi/' + $(this).val() ); } }); $( '.uploadfile_apppubli9btn' ).uploadify({ 'uploader' : '../layout/jquery/uploadify/uploadify.swf', 'script' : 'upload_script.php?type=apppubli_', 'checkScript' : 'upload_check.php?type=apppubli_', 'cancelImg' : '../layout/jquery/uploadify/cancel.png', 'buttonImg' : '../layout/jquery/uploadify/browse.gif', 'width' : '60', 'height' : '19', 'multi' : false, 'auto' : true, onComplete : function( event, queueID, fileObj, response, data ) { result = response.substring(0,1); filename = response.substring(2,response.length); if ( result == '1' ) { $('input[type=text]', $(event.currentTarget).parent() ).val( filename ); } else { alert( response ); } } });// =============== // Uploadify application - publi // =============== $( '.uploadfile_apppubli10' ).click(function(){ if ( $(this).val() ) { //window.open( '../../data/publi/' + $(this).val() ); } }); $( '.uploadfile_apppubli10btn' ).uploadify({ 'uploader' : '../layout/jquery/uploadify/uploadify.swf', 'script' : 'upload_script.php?type=apppubli_', 'checkScript' : 'upload_check.php?type=apppubli_', 'cancelImg' : '../layout/jquery/uploadify/cancel.png', 'buttonImg' : '../layout/jquery/uploadify/browse.gif', 'width' : '60', 'height' : '19', 'multi' : false, 'auto' : true, onComplete : function( event, queueID, fileObj, response, data ) { result = response.substring(0,1); filename = response.substring(2,response.length); if ( result == '1' ) { $('input[type=text]', $(event.currentTarget).parent() ).val( filename ); } else { alert( response ); } } }); // =============== // Uploadify Research plan - lay abstract // =============== $( '.uploadfile_layabstract' ).click(function(){ if ( $(this).val() ) { //window.open( '../../data/career/' + $(this).val() ); } }); $( '.uploadfile_layabstractbtn' ).uploadify({ 'uploader' : '../layout/jquery/uploadify/uploadify.swf', 'script' : 'upload_script.php?type=layabstract_', 'checkScript' : 'upload_check.php?type=layabstract_', 'cancelImg' : '../layout/jquery/uploadify/cancel.png', 'buttonImg' : '../layout/jquery/uploadify/browse.gif', 'width' : '60', 'height' : '19', 'multi' : false, 'auto' : true, onComplete : function( event, queueID, fileObj, response, data ) { result = response.substring(0,1); filename = response.substring(2,response.length); if ( result == '1' ) { $('input[type=text]', $(event.currentTarget).parent() ).val( filename ); } else { alert( response ); } } }); // =============== // Uploadify Research plan - current status // =============== $( '.uploadfile_currentstatus' ).click(function(){ if ( $(this).val() ) { //window.open( '../../data/career/' + $(this).val() ); } }); $( '.uploadfile_currentstatusbtn' ).uploadify({ 'uploader' : '../layout/jquery/uploadify/uploadify.swf', 'script' : 'upload_script.php?type=currentstatus_', 'checkScript' : 'upload_check.php?type=currentstatus_', 'cancelImg' : '../layout/jquery/uploadify/cancel.png', 'buttonImg' : '../layout/jquery/uploadify/browse.gif', 'width' : '60', 'height' : '19', 'multi' : false, 'auto' : true, onComplete : function( event, queueID, fileObj, response, data ) { result = response.substring(0,1); filename = response.substring(2,response.length); if ( result == '1' ) { $('input[type=text]', $(event.currentTarget).parent() ).val( filename ); } else { alert( response ); } } }); // =============== // Uploadify Research plan - applicant status // =============== $( '.uploadfile_applicantstatus' ).click(function(){ if ( $(this).val() ) { //window.open( '../../data/career/' + $(this).val() ); } }); $( '.uploadfile_applicantstatusbtn' ).uploadify({ 'uploader' : '../layout/jquery/uploadify/uploadify.swf', 'script' : 'upload_script.php?type=applicantstatus_', 'checkScript' : 'upload_check.php?type=applicantstatus_', 'cancelImg' : '../layout/jquery/uploadify/cancel.png', 'buttonImg' : '../layout/jquery/uploadify/browse.gif', 'width' : '60', 'height' : '19', 'multi' : false, 'auto' : true, onComplete : function( event, queueID, fileObj, response, data ) { result = response.substring(0,1); filename = response.substring(2,response.length); if ( result == '1' ) { $('input[type=text]', $(event.currentTarget).parent() ).val( filename ); } else { alert( response ); } } }); // =============== // Uploadify Research plan - detailed // =============== $( '.uploadfile_detailed' ).click(function(){ if ( $(this).val() ) { //window.open( '../../data/career/' + $(this).val() ); } }); $( '.uploadfile_detailedbtn' ).uploadify({ 'uploader' : '../layout/jquery/uploadify/uploadify.swf', 'script' : 'upload_script.php?type=detailed_', 'checkScript' : 'upload_check.php?type=detailed_', 'cancelImg' : '../layout/jquery/uploadify/cancel.png', 'buttonImg' : '../layout/jquery/uploadify/browse.gif', 'width' : '60', 'height' : '19', 'multi' : false, 'auto' : true, onComplete : function( event, queueID, fileObj, response, data ) { result = response.substring(0,1); filename = response.substring(2,response.length); if ( result == '1' ) { $('input[type=text]', $(event.currentTarget).parent() ).val( filename ); } else { alert( response ); } } }); // ------ FORM FELLOWSHIP --------------------- $('#form_personal_personal_birthdate').datepicker({ dateFormat: 'dd.mm.yy', changeMonth: true, changeYear: true, yearRange: '1900:2024' }); $('#form_project_startingdate').datepicker({ dateFormat: 'dd.mm.yy', changeMonth: true, changeYear: true }); $('#form_position_startingdate').datepicker({ dateFormat: 'dd.mm.yy', changeMonth: true, changeYear: true }); $('#form_position_untildate').datepicker({ dateFormat: 'dd.mm.yy', changeMonth: true, changeYear: true }); // =============== // Uploadify Institution - letter // =============== $( '.uploadfile_letter' ).click(function(){ if ( $(this).val() ) { //window.open( '../../data/career/' + $(this).val() ); } }); $( '.uploadfile_letterbtn' ).uploadify({ 'uploader' : '../layout/jquery/uploadify/uploadify.swf', 'script' : 'upload_script.php?type=letter_', 'checkScript' : 'upload_check.php?type=letter_', 'cancelImg' : '../layout/jquery/uploadify/cancel.png', 'buttonImg' : '../layout/jquery/uploadify/browse.gif', 'width' : '60', 'height' : '19', 'multi' : false, 'auto' : true, onComplete : function( event, queueID, fileObj, response, data ) { result = response.substring(0,1); filename = response.substring(2,response.length); if ( result == '1' ) { $('input[type=text]', $(event.currentTarget).parent() ).val( filename ); } else { alert( response ); } } }); // =============== // Uploadify Proposed Project - Proposed work // =============== $( '.uploadfile_propwork' ).click(function(){ if ( $(this).val() ) { //window.open( '../../data/career/' + $(this).val() ); } }); $( '.uploadfile_propworkbtn' ).uploadify({ 'uploader' : '../layout/jquery/uploadify/uploadify.swf', 'script' : 'upload_script.php?type=propwork_', 'checkScript' : 'upload_check.php?type=propwork_', 'cancelImg' : '../layout/jquery/uploadify/cancel.png', 'buttonImg' : '../layout/jquery/uploadify/browse.gif', 'width' : '60', 'height' : '19', 'multi' : false, 'auto' : true, onComplete : function( event, queueID, fileObj, response, data ) { result = response.substring(0,1); filename = response.substring(2,response.length); if ( result == '1' ) { $('input[type=text]', $(event.currentTarget).parent() ).val( filename ); } else { alert( response ); } } }); // =============== // Uploadify Scientific - publi // =============== $( '.uploadfile_publi' ).click(function(){ if ( $(this).val() ) { //window.open( '../../data/career/' + $(this).val() ); } }); $( '.uploadfile_publibtn' ).uploadify({ 'uploader' : '../layout/jquery/uploadify/uploadify.swf', 'script' : 'upload_script.php?type=publi_', 'checkScript' : 'upload_check.php?type=publi_', 'cancelImg' : '../layout/jquery/uploadify/cancel.png', 'buttonImg' : '../layout/jquery/uploadify/browse.gif', 'width' : '60', 'height' : '19', 'multi' : false, 'auto' : true, onComplete : function( event, queueID, fileObj, response, data ) { result = response.substring(0,1); filename = response.substring(2,response.length); if ( result == '1' ) { $('input[type=text]', $(event.currentTarget).parent() ).val( filename ); } else { alert( response ); } } }); // =============== // Uploadify Scientific - publi first // =============== $( '.uploadfile_publifirst' ).click(function(){ if ( $(this).val() ) { //window.open( '../../data/career/' + $(this).val() ); } }); $( '.uploadfile_publifirstbtn' ).uploadify({ 'uploader' : '../layout/jquery/uploadify/uploadify.swf', 'script' : 'upload_script.php?type=publifirst_', 'checkScript' : 'upload_check.php?type=publifirst_', 'cancelImg' : '../layout/jquery/uploadify/cancel.png', 'buttonImg' : '../layout/jquery/uploadify/browse.gif', 'width' : '60', 'height' : '19', 'multi' : false, 'auto' : true, onComplete : function( event, queueID, fileObj, response, data ) { result = response.substring(0,1); filename = response.substring(2,response.length); if ( result == '1' ) { $('input[type=text]', $(event.currentTarget).parent() ).val( filename ); } else { alert( response ); } } }); }); function limite( zone, max ) { var position = zone.scrollTop; if ( zone.value.length >= max ){ zone.value = zone.value.substring( 0, max ); } zone.scrollTop = position; document.getElementById( "count_"+zone.name ).innerHTML = max - zone.value.length; } function calculate() { var total1 = parseInt(0); var total2 = 0; var total = 0; total1 += parseInt(document.getElementById('form_funding_consumables_chf').value); total1 += parseInt(document.getElementById('form_funding_maintenance_chf').value); total1 += parseInt(document.getElementById('form_funding_newapparatus_chf').value); total1 += parseInt(document.getElementById('form_funding_misc1_chf').value); //total1 += parseInt(document.getElementById('form_funding_misc2_chf').value); //total1 += parseInt(document.getElementById('form_funding_misc3_chf').value); //total1 += parseInt(document.getElementById('form_funding_misc4_chf').value); document.getElementById('form_funding_total1_chf').value = total1; total2 += parseInt(document.getElementById('form_funding_academics_chf').value); total2 += parseInt(document.getElementById('form_funding_doctoral_chf').value); total2 += parseInt(document.getElementById('form_funding_techstaff_chf').value); document.getElementById('form_funding_total2_chf').value = total2; document.getElementById('form_funding_total2final_chf').value = total2; total += parseInt(document.getElementById('form_funding_total1_chf').value); total += parseInt(document.getElementById('form_funding_total2final_chf').value); var total12 = parseInt(0); var total22 = 0; var total2 = 0; total12 += parseInt(document.getElementById('form_funding_consumables2_chf').value); total12 += parseInt(document.getElementById('form_funding_maintenance2_chf').value); total12 += parseInt(document.getElementById('form_funding_newapparatus2_chf').value); total12 += parseInt(document.getElementById('form_funding_misc12_chf').value); //total12 += parseInt(document.getElementById('form_funding_misc22_chf').value); //total12 += parseInt(document.getElementById('form_funding_misc32_chf').value); //total12 += parseInt(document.getElementById('form_funding_misc42_chf').value); document.getElementById('form_funding_total12_chf').value = total12; total22 += parseInt(document.getElementById('form_funding_academics2_chf').value); total22 += parseInt(document.getElementById('form_funding_doctoral2_chf').value); total22 += parseInt(document.getElementById('form_funding_techstaff2_chf').value); document.getElementById('form_funding_total22_chf').value = total22; document.getElementById('form_funding_total22final_chf').value = total22; total2 += parseInt(document.getElementById('form_funding_total12_chf').value); total2 += parseInt(document.getElementById('form_funding_total22final_chf').value); document.getElementById('total_year1').innerHTML = total; document.getElementById('total_year2').innerHTML = total2; document.getElementById('form_funding_required_chf').value = parseInt(total) + parseInt(total2); }